phpstudy切换5.4和5.5都没问题,但是切换5.6和5.7就出现You don't have permission to access xxx on this server.
折腾了老半天,发现是配置问题!修改玩配置就ok了!
修改前
<VirtualHost *:80>
DocumentRoot D:\WWW\test
ServerName test.cn
ServerAlias test.cn
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
ErrorDocument 500 /errpage/500.html
<Directory D:\WWW\test>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
修改后
<VirtualHost *:80>
DocumentRoot D:\WWW\test
ServerName test.cn
ServerAlias test.cn
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
ErrorDocument 500 /errpage/500.html
<Directory D:\WWW\test>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>