yii php framework “Application runtime path is not valid.” exception

前端 未结 9 1010
旧巷少年郎
旧巷少年郎 2021-02-05 17:03

I tried to make a yii project for testing by executing

/var/www/html/yii/framework/yiic webapp demo

and when I go to localhost/demo I get en er

9条回答
  •  孤城傲影
    2021-02-05 18:00

    If u r sure file permissions set correctly for the folder and still u getting the error, disabling SElinux or add an exception for SElinux is working if u r using CentOS. edit /etc/selinux/config file for disable SElinux or run this command for add an exception

    sudo chcon -t httpd_sys_rw_content_t /path/to/ur/annoying/folder -R

提交回复
热议问题