Link to home
Start Free TrialLog in
Avatar of Akulsh
AkulshFlag for India

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:
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

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
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Akulsh

ASKER

I posted this on behalf of a friend, who is involved in some other project at this time, and cannot give any feedback -- though he has tried some of your suggestions already. I will post again in a few days. Please understand.
Avatar of Akulsh

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\httpd-vhosts.conf
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>

Commenting out 'Require local' fixed the issue:
# Require local

Thanks for your time.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial