博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
lnmp环境部署
阅读量:6914 次
发布时间:2019-06-27

本文共 903 字,大约阅读时间需要 3 分钟。

安装lnmp一键安装包:

相关配置文件

Nginx 配置文件:/usr/local/nginx/conf/nginx.conf

PHP 配置文件: /usr/local/php/etc/php.ini

MySQL配置文件: /etc/my.cnf

默认网站根目录: /home/wwwroot/default

 

搭建常见问题:

composer安装laravel应用报错:

报错1: 403 Foribidden

检查目录所属者是否和/usr/local/nginx/conf/nginx.conf中的用户名一致

报错2:关于PHP的报错

编辑/usr/local/php/etc/php.ini中disable_function 相应的方法即可

该网页无法正常运作

情景:nginx.conf网站更目录更改以后报以上错误

编辑/usr/local/php/etc/php.ini打开错误信息提示

display_errors = On

display_startup_errors = On

修改完重启php-fpm    lnmp php-fpm stop|start 

Warning: require(): open_basedir restriction in effect...

 

错误日志显示,访问脚本不在 open_basedir的限定目录里面,配置open_basedir 一般会在php.ini 或 nginx 配置文件里面

 

error in exception handler: The stream or file "/var/www/laravel/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/laravel/bootstrap/compiled.php:8423

 

在应用目录下执行命令

chmod -R 777 storage/

 

转载于:https://www.cnblogs.com/itmb/p/10331664.html

你可能感兴趣的文章
1032. Sharing (25)
查看>>
JSP的隐藏对象
查看>>
2014秋C++ 第8周项目 分支程序设计
查看>>
[pig] pig 基础使用
查看>>
java中的线程同步
查看>>
Does the parameter type of the setter match the return type of the getter?
查看>>
MongoDB count distinct group by JavaAPI查询
查看>>
Java多线程系列——原子类的实现(CAS算法)
查看>>
LibEvent代码阅读--多缓冲区和零拷贝技术
查看>>
学生管理系统报错(一)
查看>>
使用 Live555 搭建流媒体服务器
查看>>
第十四周(OOP版电子词典)
查看>>
网络基础知识小小说
查看>>
linux lsof命令详解
查看>>
POJ 1163 The Triangle【dp+杨辉三角加强版(递归)】
查看>>
vue如何在路由跳转的时候更新组件
查看>>
Java多线程(二)
查看>>
《深入浅出数据分析》读后具体解释
查看>>
C++中的异常安全性
查看>>
Xcode中的变量模板(variable template)的使用方法
查看>>