Home > PHP Framework > YII > body text

What should I do if the yii framework displays a 500 error?

藏色散人
Release: 2020-01-09 10:46:18
Original
3225 people have browsed it

What should I do if the yii framework displays a 500 error?

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
Copy after login

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!

Related labels:
yii
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!