What should I do if the yii framework displays a 500 error? Yii2 View server 500 error [2.0 version]
Server 500 error()
First open web/index.php defined( 'YII_DEBUG') or define('YII_DEBUG', true);
Change this to true;
Look at the error reported
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
assests folder and its file permissions Insufficient, resulting in inability to access AssetManager.php. Change it to 777. The name of the owner and group of my previous project is www. The permissions are the maximum 777. The user name of the later project is root. The permissions are not the maximum. All the project assets folder needs to be changed. It's 777 on it.
Recommended learning: yii framework
The above is the detailed content of What should I do if the yii framework displays a 500 error?. For more information, please follow other related articles on the PHP Chinese website!