lighttpd 访问php 403 forbidden解决方案

来源:互联网 发布:寻求网络销售团队合作 编辑:程序博客网 时间:2024/05/17 06:32

每次在安装完lighttpd后,总是出现php页面无法访问的情况,显示403 forbidden。

其实造成这种情况的原因很多,

1. linux下www目录的访问权限不够,造成程序无法访问。使用chmod -R 777 /你的www路径。

2.在终端输入命令

ln -s /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-enabled/

然后输入

sudo service lighttpd reload

搞定!

0 0
原创粉丝点击