Fatal error: require_once(): Failed opening required '/home/vhosts/fcsitroomreservation.orgfree.com/fyp/yiiframework/framework/yii.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/fcsitroomreservation.orgfree.com/fyp/index.php on line 12
this is my index.php
// change the following paths if necessary
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
I no idea is path directory problem or other problem, hope anyone can guide.
the yiiframework folder is under the same root with fyp folder. but now i create the new directory folder fcsitreservation in filezilla and i upload both fyp and yiiframework folder under the fcsitreservation folder.
Fatal error: require_once(): Failed opening required '/home/vhosts/fcsitroomreservation.orgfree.com/fcsitreservation/fyp/../../yiiframework/framework/yii.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/fcsitroomreservation.orgfree.com/fcsitreservation/fyp/index.php on line 12
OK. THis error is saying that you are getting to the Yii framework with ‘/../yiiframework/’ setting. However the ‘protected/runtime/’ dir is the problem. If ‘runtime’ exists on the server check the permissions. The user that the web server is running under is unable to write to that dir.
I believe the Yii documentation on installation says that the ‘/protected/runtime/’ and the root ‘assests’ need to be be writable by the server, and indicate the permissions needed. Check with you host admin about how to make these dirs accessible by the web server.
I had the same problem as in topic (Linux host). I changed the SElinux context: for all dirs "assets", "runtime" and "framework" - httpd_var_run_t; for each other is httpd_sys_content_t. My problem was fixed.