I just tried to install Yii on my server which is running PHP 5.2.6. The requirements-page sais that installing Yii was possible. But everytime I run [font=“Courier New”]./yiic webapp ../[/font] I’m getting the same errors (seems to be a stacktrace):
[...]
#6 WebAppCommand->run(Array ([0] => ../)) called at [/srv/www/vhosts/****.de/httpdocs/framework/console/CConsoleCommandRunner.php:62]
#7 CConsoleCommandRunner->run(Array ([0] => ./yiic,[1] => webapp,[2] => ../)) called at [/srv/www/vhosts/****.de/httpdocs/framework/console/CConsoleApplication.php:88]
#8 CConsoleApplication->processRequest() called at [/srv/www/vhosts/****.de/httpdocs/framework/base/CApplication.php:135]
#9 CApplication->run() called at [/srv/www/vhosts/****.de/httpdocs/framework/yiic.php:33]
#10 require_once(/srv/www/vhosts/****.de/httpdocs/framework/yiic.php) called at [/srv/www/vhosts/****.de/httpdocs/framework/yiic:15]
Afterwards there are an index.php, index-test.php, a css and an asserts-directory. Nothing else. And when I try to load the site in the browser there is just a blank page.
PHP Error[2]: file_put_contents(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /srv/www/vhosts/****.de/httpdocs/css owned by uid 0
in file /srv/www/vhosts/****.de/httpdocs/framework/console/CConsoleCommand.php at line 154
I don’t think that safe mode is off, because then PHP would not say so. Please note that PHP on the command line (which is used by yiic) usually has its own config file (php.ini). You could use this command to find the location of this file and turn of safe mode: