Access denied for user xxx
检查下列文件,看看数据库配置信息
database.php
.env
配置正确即可.
Warning: Module ‘xxx’ already loaded
重复的模块加载警告,比如
Warning: Module ‘openssl’ already loaded in Unknown on line 0
原因 : 在php.ini
中重复加载了openssl模块
确保php.ini
中只配置一次
extension=php_openssl.dll
所有路由404
项目部署到Linux服务器后 , 所有的路由除了’/'以外 , 其他所有路由全部404
解决方案:
在nginx配置文件中配置 try_files $uri $uri/ /index.php?$query_string;
编辑nginx.conf
配置文件
# vim /etc/nginx/nginx.conf
配置位置:
location / {
root /usr/share/nginx/html/laravel_test/public;
index index.php index.html;
try_files $uri $uri/ /index.php?$query_string;
}
重启Nginx,问题解决
service nginx restart
感谢
https://segmentfault.com/q/1010000002422408
http://blog.csdn.net/sunxiang_520/article/details/51633837