以前php环境崩溃了,重新装了个,打开文件就出现错误:
Forbidden
You don't have permission to access / on this server.
让我情以何堪啊,居然说我此台服务器上无权限!解决办法如下:
找到:apache文件,进入conf文件,打开httpd.conf 文件,做如下修改:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
修改成
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
# Deny from all
Allow from all
#允许所有访问
Satisfy all
</Directory>
第二处:找到:
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
修改成:
# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
然后保存,重启服务,在访问就解决了这个问题