每次在安装完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
搞定!