Akulsh
asked on
PHP Apache application gives "Forbidden" message
We have a PHP Apache web application that is running on a Windows 2012-R2 VM server. All works fine on Localhost, but when we try to view remotely by pointing to http://<FQDN-of-Server>:8080
we get the error message:
WampServer Version 3.0.4 64bit.
Have tried to change config files to allow all, and also configured the Wamp to 'put online'. Local firewall on Windows server has rules to permit incoming traffic on port 8080. Nothing has helped. Please advise.
we get the error message:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Win64) PHP/5.6.19 Server at <Server-Name> Port 8080
You don't have permission to access / on this server.
Apache/2.4.18 (Win64) PHP/5.6.19 Server at <Server-Name> Port 8080
WampServer Version 3.0.4 64bit.
Have tried to change config files to allow all, and also configured the Wamp to 'put online'. Local firewall on Windows server has rules to permit incoming traffic on port 8080. Nothing has helped. Please advise.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
gr8gonzo,
The link that helped us was
http://stackoverflow.com/questions/19377476/forbidden-you-dont-have-permission-to-access-on-this-server-wamp-error
It referred us to this file :
C:\wamp\bin\apache\apache2 .4.9\conf\ extra\http d-vhosts.c onf
Where we saw:
Commenting out 'Require local' fixed the issue:
# Require local
Thanks for your time.
The link that helped us was
http://stackoverflow.com/questions/19377476/forbidden-you-dont-have-permission-to-access-on-this-server-wamp-error
It referred us to this file :
C:\wamp\bin\apache\apache2
Where we saw:
<VirtualHost *:8080>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Commenting out 'Require local' fixed the issue:
# Require local
Thanks for your time.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER