Andie Andie - 1 month ago 44
PHP Question

Wamp Server 3.0.6 working fine as localhost, but not on network

I have just installed WAMP server on a server, when logged into the server, everything works fine, website is displayed as i would expect, however if i try to access the website from a remote machine I get a message


'Forbidden - you don't have permission to access / on this server'


I have checked the server is online and all services are running... and they are

Answer

In your directory of virtualhost, change Require local with Require all granted

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot your_path
    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

change to:

    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>