Search code examples
apachewampwampserverhttpd.confhttp-status-code-403

WAMP 403 Forbidden message on Windows 7


I have installed WAMP version 2.1 on my windows 7 machine. When i browse to localhost in my browser, the WAMP server page is visible.

But when I browse to my IP in my browser, I get the message

403 Forbidden: You don't have permission to access / on this server.

Any suggestions?


Solution

  • The access to your Apache server is forbidden from addresses other than 127.0.0.1 in httpd.conf (Apache's config file) :

    <Directory "c:/wamp/www/">
        Options Indexes FollowSymLinks
        AllowOverride all
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
    </Directory>
    

    The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf :

    <Directory "c:/wamp/apps/phpmyadmin3.4.5/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
            Order Deny,Allow
            Deny from all
            Allow from 127.0.0.1
    </Directory>
    

    You can set them to allow connections from all IP addresses like follows :

    AllowOverride All
    Order allow,deny
    Allow from all