Issues with WAMP server working "online", forbidden error
Posted by: theovencook (---.ppp.onetel.net.uk)
Date: March 26, 2014 09:14PM

Hi there,
I'm having issues getting my new WAMP web server online. I was wondering if anyone can help me with my issue, which feels like a huge problem, although probably an extremely simple fix!
I'm using WAMPSERVER 2.4, on WIndows 7.

When viewing my webpage through local host or 127.0.0.1; the webpage loads fine
(image for proof localhost: [gyazo.com] )
(image for proof 127.0.0.1: [gyazo.com] )

Although when viewing my webpage through my domain, external IP address or internal IP address; it does not load!
(image for proof internal IP: [gyazo.com] )
(image for proof external IP/ domain: [gyazo.com] )

I get the message "Forbidden
You don't have permission to access / on this server."

I have port forwarded correctly, as seen:
(image for proof of portchecker: [gyazo.com] )
(image for proof of port forward: [gyazo.com] )

The server is turned online
(Image for proof that it is online: [gyazo.com] )
(image for proof of ipconfig: [gyazo.com] )
(image for proof of hosts file: [gyazo.com] )

hope that all the images can make the diagnosis of my issue easier for you.
Many thanks, Toby.

Options: ReplyQuote
Re: Issues with WAMP server working "online", forbidden error
Posted by: RiggsFolly (---.as13285.net)
Date: March 27, 2014 10:37AM

WAMPServer is configured as a Just On This Box development tool. So Apache is configured to only accept connections from the local machine i.e. 127.0.0.1 localhost and ::1

There was a little bug in the "Put Online" code in 2.4, have you read and amended your WAMPServer according to these after install fixes? [forum.wampserver.com]

Basically you need to check the httpd.conf in thsi area


    #
    # Controls who can get stuff from this server.
    #
#    Require all granted
#   onlineoffline tag - don't remove
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost
</Directory>

To allow access from anywhere i.e. the universe make this change


    #
    # Controls who can get stuff from this server.
    #
#    Require all granted
#   onlineoffline tag - don't remove
    Require all granted
</Directory>


I do STRONGLY suggest that you plow through the document and apply the fixes as suggested, especially if you are going to open your system up to the universe.

Especially this change:

From
<Directory />
    AllowOverride none
    Require all granted
</Directory>

To

<Directory />
    AllowOverride none
    Require all denied
</Directory>

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.