Home > Article > PHP Framework > yii2 server 500 error
First open web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true);
Change this to true; check the error report , as follows:
Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory is not writable by the Web process: /home/wwwroot/1XX.2X.XX3.X2/xhedu/backend/web/assets'in /home/wwwroot/12X.2X.XXX.1X/xhedu/vendor/yiisoft/yii2/web/AssetManager.php:213
Cause analysis:
(Recommended tutorial: yii framework)
assests folder and its files have insufficient permissions, resulting in inaccessibility AssetManager.php Change it to 777.
Solution:
The owner and group name of the previous project was www, and the permissions were the maximum 777. The user name of the later project was root, and the permissions were not the maximum, so you need to Just change the project assets folder to 777.
For more programming related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of yii2 server 500 error. For more information, please follow other related articles on the PHP Chinese website!