Yii Framework Forum: Problems With Yiic When Apache Does Not Have Mod_Php - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problems With Yiic When Apache Does Not Have Mod_Php Rate Topic: -----

#1 User is offline   John McL 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 28-October 12

Posted 28 October 2012 - 12:28 PM

Trying to load yii framework on a server that hasn't got mod_php in Apache:

when I run yiic I get this error:
PHP Notice:  Undefined index:  SCRIPT_FILENAME in /blah/blah/blah/yiisite/framework/base/CApplication.php on line 136


Server admin quotes this reason for using CGI instead of mod_php:

Quote

It is not possible to make mod_php available on your account in a secure fashion, as your account is hosted on a shared server. Many users' webpages are served by the same server process. The webserver is configured to run any CGI scripts under the user id of the owner of the webpage, rather than the user id of the web server process. This means that your CGI scripts need only be readable by your user id, so it is possible to include sensitive data (such as database passwords) safely in your scripts, and other users will not be able to access it.


Any thoughts if this is the problem...?
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,358
  • Joined: 12-October 09
  • Location:Croatia

Posted 29 October 2012 - 06:06 AM

Could be some PHP configuration problem. Seems that on that server $_SERVER['SCRIPT_FILENAME'] is not defined.

http://php.net/manua...bles.server.php
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users