BUG: Get Online option doesn't work
Posted by: Pavlus (---.012.net.il)
Date: August 11, 2012 12:22PM

Just finished fixing this issue, is took me a while to figure out.

Problem:
When accessing the site form outside of the localhost you see only "403 Forbidden". Locally it's working.

What did I check:
1. Played with "Get Online, Get Offline" option, with/without manual restart. Same results.
2. Not a port forwarding issue, because whenever I access my local site from outside I get this line in the access log:
123.123.78.54 - - [10/Aug/2012:12:13:17 +0300] "GET / HTTP/1.1" 403 202
3. With another local AMP stack it is working fine. I have an Acquia from which I moved to WampServer. When I start acquia, I can access my drupal 7 site from outside.

So, the problem is in Apache config. I started to check WampServer's httpd.conf line after line and comparing it to acquia's config and finally I found the issue. In <Directory "C:\wamp\www"> section, about line 266:
    #   onlineoffline tag - don't remove
    Require local
Grrr. "Server Online" the system tray icon says. To solve the problem I just copied Acquia's config for <Directory "C:\acquia\www">. So...

THE SOLUTION: (workaround actually)
In WampServer's Apache's httpd.conf in section <Directory "<Your_wamp_path>\www"> remove or comment out line:
Require local
and paste there:
Order allow,deny
Allow from all

p.s. The comment says:
# Controls who can get stuff from this server.
# Online --> Require all granted
I tried to put "Require all granted" and it didn't work, gave me the same 403 error.
Info for WampServer developers: I'm running this distribution:
wampserver2.2e-php5.4.3-httpd-2.4.2-mysql5.5.24-x64
My system is Windows 7 Ult x64, 6GB. LAN behind aDSL modem-router.



Edited 1 time(s). Last edit at 08/11/2012 12:34PM by Pavlus.

Options: ReplyQuote
Re: BUG: Get Online option doesn't work
Posted by: stevenmartin99 (Moderator)
Date: August 11, 2012 12:48PM

already answered on forum.. >> [forum.wampserver.com]

yes there is a small bug in one of the versions, please follow this as your work around is breaking the online/offline button


the Solution is to removed the blank line and left align the code

  #   onlineoffline tag - don't remove

    Require local

to

#   onlineoffline tag - don't remove
Require local


then restart wamp, and toggle the online/offline button 3 times

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 2 time(s). Last edit at 08/11/2012 12:52PM by stevenmartin99.

Options: ReplyQuote
Re: BUG: Get Online option doesn't work
Posted by: stephofthedead (---.xittel.net)
Date: August 15, 2012 02:53AM

Some version was released to quickly I guess...

Just installed wampserver 2.2 x64 https 2.4 and had this same issue. Been looking on this forum and found many threads with different solutions. To fix mine, it was very similar to Steven's solution BUT I had to have some spaces before Require local

Options: ReplyQuote


Sorry, only registered users may post in this forum.