sunkezai 发表于 2017-1-14 10:46:00

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
页: [1]
查看完整版本: Linux下安装好apache和PHP后出现you don't have permission to access / on this server