Avatar of Akulsh
Akulsh
Flag 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.
Apache Web ServerLinux

Avatar of undefined
Last Comment
gr8gonzo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
gr8gonzo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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.
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
gr8gonzo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck