Home > Article > PHP Framework > How to check server 500 error in yii2
Server 500 error:
First open web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true); change this to true; Take a look at the error reported
##assests file The folder and its files have insufficient permissions, resulting in the 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 subsequent project is root. The permissions are not the maximum. All needs to be changed. Just change the project assets folder to 777. PHP Chinese website has a large number of freeException (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
Yii introductory tutorials, everyone is welcome to learn!
The above is the detailed content of How to check server 500 error in yii2. For more information, please follow other related articles on the PHP Chinese website!