/ 中存储网

解决Apache服务器不能访问.PHP文件的问题

2014-04-11 08:54:01 来源:中存储网
今天在/usr/local/apache/htdocs/下建了一个文件,结果访问时候出现

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/local/apache/htdocs/test.php' (include_path='.:/usr/local/php/lib/php') in Unknown on line 0

查了原来是权限的问题而不是配置的问题

把test.php修改为775即可