Forbidden
You don't have permission to access /index.phpon this server.
今天本地apache启动后报错,搜索了好多网上的答案,都集中在修改apache中httpd.conf文件
< Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all //修改为 allow from all
< Directory >
但是根据以上偿试了各种配置都没能解决最后在 Options Indexes MultiViews FollowSymLinks ExecCGI 加了个ExecCGI 重启就好用了
<VirtualHost *:80>
ServerName localhost
DocumentRoot "E:\phpStudy\WWW"
Options Indexes MultiViews FollowSymLinks ExecCGI
AllowOverride All Order allow,deny
Allow from all
<//VirtualHost>