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

前端 未结 9 1014
旧巷少年郎
旧巷少年郎 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 17:57

    you must config with semanage like this which allow php-fpm write access to directory

    # semanage fcontext -a -t httpd_sys_rw_content_t 'YOUR_PATH_HERE'
    # restorecon -v 'YOUR_PATH_HERE'
    

提交回复
热议问题