1. Install From Archived File
Edit file /var/www/basic/config/web.php, set cookieValidationKey
1 |
'cookieValidationKey' => 'chuchujie' |
2. Call to undefined function mb_strlen
1 |
Fatal error: Call to undefined function mb_strlen() |
yum install php55-mbstring module.
Version is import.
3. The directory is not writable by the Web process
1 |
ec2-user 13898 0.0 0.1 393312 20952 ? S 19:47 0:00 /usr/sbin/httpd |
1 |
chown -R ec2-user.ec2-user /var/www/basic |
http://www.g-loaded.eu/2008/12/09/making-a-directory-writable-by-the-webserver/
4. Class ‘PDO’ not found
could not find driver Caused by: PDOException
1 |
yum install php55-pdo.x86_64 -y |
5. Yii2 Gii Forbidden code 403 You are not allowed to access this page
Edit config/web.php
1 |
$config['modules']['gii'] = [ |
Due to company vpn , choose the ip by Apache access log.
6. Yii2 Programing Style
https://github.com/yii2-chinesization/yii2-zh-cn/blob/master/internals-zh-CN/core-code-style.md
7. Reference
https://github.com/forecho/awesome-yii2
近期评论