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

前端 未结 9 1001
旧巷少年郎
旧巷少年郎 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

    0 讨论(0)
  • 2021-02-05 18:02

    Try to upload 'runtime' folder again on your server, that works for me.

    0 讨论(0)
  • 2021-02-05 18:02

    Changed access of the entire folder of the site by using the following command

    sudo chmod -R 777 'name of your website folder'
    

    This will solve the issue.

    0 讨论(0)
提交回复
热议问题