Home  >  Article  >  PHP Framework  >  How to check server 500 error in yii2

How to check server 500 error in yii2

尚
Original
2019-12-17 14:10:033301browse

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

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 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 free

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn