解决问题 “You don't have permission to access /index.html on this server.”

问题 :“You don't have permission to access /index.html on this server.”

前几天装一个linux 企业版5.0安装了apache,打开测试页面的时候出现如下错误:

Forbidden

You don't have permission to access /index.html on this server.

开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了.

原因:index.html是用root用户建的文件,apache权限不够。

解决办法: https://www.itdaan.com/blog/2014/02/20/78aa8cc582a3b1e7babf2be5630f5c85.html