Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: markiper (---.hfc.comcastbusiness.net)
Date: August 10, 2012 03:28AM

Very first installation of WAMP, and everything seems to be installed correctly on a Windows 7 Professional x64 server. Locally I have no problem accessing the website I am testing (I am able to browse to locahost/config.html), but when I try to go to the website from another PC on the same subnet (http://ip_address/config.html) I get an error:

Forbidden
You don't have permission to access /config.html on this server.

I have double check that WAMP is ONLINE, but no luck. The message above leads me to believe that I am reaching the Apache server, so all Firewall Rules are properly set on the host server. What I am doing wrong?

The main difference from all the other users is that my installation path is a not on the C: drive, but on a secondary E: drive; would that affect me not being able to browser the website from a different PC on the same subnet?

I have checked as much configurations as I possible can, and know, and everything seems to be OK; but still no luck. any help will be greatly appreciated.

_______________A Little More Information ___________________________________

Checking the APACHE ERROR LOGS, I see the following:

[Thu Aug 09 21:05:06.544097 2012] [authz_core:error] [pid 7112:tid 796] [client 192.168.0.147:53398] AH01630: client denied by server configuration: E:/wamp/www/config.html

APACHE ACCESS LOGS also show the entry correlate to the error, and the 403 reply back to the client PC

192.168.0.147 - - [09/Aug/2012:21:05:06 -0400] "GET /config.html HTTP/1.1" 403 213

This messages definitively confirms that I am reaching the Apache server, but there is something on the configuration (httpd.conf) that I am overlooking, even after putting WAMP online.

Any hep will be greatly appreciated.



Edited 3 time(s). Last edit at 08/10/2012 03:49AM by markiper.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: stevenmartin99 (Moderator)
Date: August 10, 2012 08:16AM

i solved this for someone else the other day.

Either you both added a blank line to the code OR it seems the online/offline feature is broken in one of the downloads.



if you open the httpd.conf and search for "Require local"
you should find it directly after "# onlineoffline tag - don't remove" but their code looked more like this
                 #   onlineoffline tag - don't remove

                 Require local

the actually code should look EXACTLY line this ( it has to be completly left aligned and no blank line)
#   onlineoffline tag - don't remove
Require local


then save and restart wampserver.

you may need to click online/offline 3 times because it may take 1 go to miss the code because its on the wrong setting, then once to sync with it, then once to change it to what you want.

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



Edited 3 time(s). Last edit at 08/10/2012 08:19AM by stevenmartin99.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (---.42-88-b.business.telecomitalia.it)
Date: August 10, 2012 02:02PM

i can't fix it.
This is my httpd.conf part:
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
# Online --> Require all granted

# onlineoffline tag - don't remove
Require local

</Directory>

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: stevenmartin99 (Moderator)
Date: August 10, 2012 02:12PM

grab teamviewer and i will try

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

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: markiper (---.hfc.comcastbusiness.net)
Date: August 10, 2012 02:23PM

Steven,

Thank you very much for your help, that was the problem on my installation of WAMP. Once I corrected the httpd.conf file as per your indications, everything is working properly.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (151.55.24.---)
Date: August 10, 2012 05:38PM

ok, Steven but now i'm on holiday.
i will contact you when i come back.
Thanks.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (---.42-88-b.business.telecomitalia.it)
Date: August 29, 2012 11:18AM

Hi Steven.
I come back and if you want to try with teamviewer i'm available.
I live in Italy.....where do you live?
Let me know when.
Thanks.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: stevenmartin99 (Moderator)
Date: August 29, 2012 03:27PM

I'm in Ireland - I'm free for the next 33 hours if you need help

Just PM the details

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

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (---.42-88-b.business.telecomitalia.it)
Date: August 30, 2012 09:53AM

Now i'm sending you an e-mail to stevenmartin99@hotmail.com.
If you can answer me immediately i will send you id and password for TeamViewer.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: stevenmartin99 (Moderator)
Date: August 30, 2012 09:57AM


Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (---.42-88-b.business.telecomitalia.it)
Date: August 30, 2012 10:06AM

mail sended.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: supergian (---.42-88-b.business.telecomitalia.it)
Date: August 30, 2012 10:15AM

Sorry....i dend it to stevenmartin99@gmail.com

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: dmpinder (---.range86-184.btcentralplus.com)
Date: February 17, 2014 11:36AM

So I had this problem, and solved it by changing "Require local" to "Require all granted".

Also make sure you have set the Listen to "Listen 80" in the same file.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: autefrum (115.187.194.---)
Date: December 14, 2015 10:19PM

Changing "Require local" to "Require all granted" fixed my inability to access the web server from non-local addresses also.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: gasya (---.189.57.37.triolan.net)
Date: December 20, 2015 08:11PM

Hello! I Use latest version of WAMP and have that issue - how fix it? When I try to access site from internet I have error:Forbidden You don't have permission to access / on this server.

Options: ReplyQuote
Re: Website only accesible from local PC even if WAMP is set to be ONLINE
Posted by: RiggsFolly (---.as43234.net)
Date: December 21, 2015 03:24AM

Hi gasya,

Please start a new thread, and answert these questions in it [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(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.