首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

Linux上安装好apache和PHP后出现you don't have permission to access / on this server

2012-09-01 
Linux下安装好apache和PHP后出现you dont have permission to access / on this server百度、谷歌了很多资

Linux下安装好apache和PHP后出现you don't have permission to access / on this server

百度、谷歌了很多资料,都没有解决,最后自己摸索出解决方案:

?

1. 切换到root身份

?

2. 在/var/www/下建一个目录test: mkdir test

?

3. 修改/etc/httpd/conf/httpd.conf,将其中的修改DocumentRoot "/var/www/html"改为DocumentRoot "/var/www/test"

?

4. 修改<Directory "/var/www/html">为<Directory "/var/www/test">

?

5. 重启apache服务: service httpd restart

?

?

热点排行