LNMP= CentOS+Nginx+MySQL+PHP 安装配置及简易建站笔记(持续更新中)

来源:互联网 发布:linux ln命令 编辑:程序博客网 时间:2024/06/01 22:53

参考:http://jingyan.baidu.com/article/0a52e3f47bdf2fbf62ed7239.html


一、更改Nginx默认程序目录后出现403 forbidden错误 

/etc/nginx/conf.d/default.conf中的 location / 中的root改为用户home目录下的文件是出现403 forbidden错误 。nginx的启动用户默认是nginx的(在nginx.conf开头定义),所以对目录根本没有读的权限,这样就会报403错误了。这个时候,把web目录的权限改大,或者是把nginx的启动用户改成目录的所属用户,重起一下就能解决。

安装Discuz X 论坛系统

参考:http://bbs.51cto.com/thread-820218-1.html


二、httpd启动失败

报错: Could not reliably determine the server's fully qualified domain name

(13)Permission denied: make_sock: could not bind to address [::]:80

解决办法:修改httpd.conf/etc/httpd/conf/ 下或者 /usr/local/apache/conf/ 下),将Listen 80 改成其他端口,例如 Listen 8080 

搜索"#ServerName",在 #ServerName www.example.com:80下面添加ServerName localhost:8080,然后重启httpd即可。

原创粉丝点击