1、首先开启web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true); 将此改为true;看下报错的问题:
Exception (Invalid Configuration) 'yiiaseInvalidConfigException' 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
2、assests文件夹及其文件权限不足,导致无法访问AssetManager.php,将其改为777即可,我之前的项目的所有者和组的名称是 www,权限是最大的777;后来的项目的用户名是root,权限不是最大,所有需要将项目assests文件夹改为777,就可以了。
PHP中文网,有大量免费的Yii入门教程,欢迎大家学习!
Copyright © 2019- 517ttc.cn 版权所有 赣ICP备2024042791号-8
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务