Forbiddan- You don't have permission to access / on this server.
Posted by: darkrounge (---.5-1.cable.virginmedia.com)
Date: August 12, 2012 01:02AM

Everytime I try to access my web server files via my IP address, I always get:

Forbiddan
You don't have permission to access / on this server.


I can access them on my localhost.
I've portforwarded, etc.., people can access my online game server (Meaning no firewall is preventing) but cannot access my website?

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: August 13, 2012 02:00PM

Have you run "Put Online" from the Wampmanager icon in the system tray.

This changes the httpd.conf file to allow access from all addresses, by default ( when its offline ) it will only respond to ip address 127.0.0.1.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: darkrounge (---.5-1.cable.virginmedia.com)
Date: August 16, 2012 03:03AM

Yeah, I did that.
Still the same.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: August 16, 2012 11:13AM

OK,

Is your game server running on wamp on the same PC as your new site?

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: jp (---.bredband.comhem.se)
Date: August 17, 2012 12:26PM

Hey darkrounge

I had also that pesky 403 problem. Even if I did everything by the book (open ports in router/firewall etc) Configed Viritual hosts etc etc AND "Put Online"!.

Read many posts from Steven here at the forum but it didn't solve my problem until I went into the httpd.conf file and changed line #265 from Require local to Require all granted.

Don't know if the "put online" feature should do this automatically.
If it should... well it didn't do this for me anyway.

So i change it and now I can access my website on the internet.

But!!! and I say but! Webgrind and sqlbuddy still gives me 403 so have to digg a little bit deeper and see if I can find where the problem is. If i find it i'll share the solution winking smiley



Edited 1 time(s). Last edit at 08/17/2012 12:27PM by jp.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 17, 2012 12:37PM

Hey JP,

One question, are you sure you want Webgrind and SQLBuddy to be available to all your site visitors??

Anyway, thats your decision.


Look in
C:\wamp\alias\sqlbuddy.conf and
C:\wamp\alias\webgrind.conf

You will see these 2 files control access to these 2 apps
They have their own
Deny from all
Allow from 127.0.0.1

Which you are at liberty to change if you think its a good idea.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: jp (---.bredband.comhem.se)
Date: August 17, 2012 01:12PM

Hey RiggsFolly

Nah, don't need them and haven't touched them ether. The only thing I changes was the 265 line in httpd.conf file so the 403 disappeared and got my website online on the internet.

What's interesting is that even a clean install of Wamp the "Deny from all" or "Allow from all" text doesn't exist in ether the conf files (httpd, webgrind, sqlbuddy or the php one).
The only thing i can find is Require local ... that's it tongue sticking out smiley

I downloaded the following wamp:
WAMPSERVER (64 BITS & APACHE 2.4) 2.2E
Apache 2.4.2 – Mysql 5.5.24 – PHP 5.4.3 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0

(Top right one)



Edited 1 time(s). Last edit at 08/17/2012 01:13PM by jp.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 17, 2012 01:26PM

Jp,

So why did you write

Quote

But!!! and I say but! Webgrind and sqlbuddy still gives me 403 so have to digg a little bit deeper and see if I can find where the problem is. If i find it i'll share the solution

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: jp (---.bredband.comhem.se)
Date: August 17, 2012 02:01PM

Had the 403 problem when I tried to access my website via the Internet from another computer.

* I followed all the instructions how to setup wamp for internet access.
* Put Online
And still got the 403.
I read that you should change in the httpd.conf from "Deny from all" to "Allow from all" (on some lines) go get it from "LAN mode" to "internet mode. But for me there was no "Deny from all" text to change and I read from one of Steven's posts that the "put online" should do this automatically for you.
Anyway it didn't work for me... Still had the 403.


So what I did was I went in manually in the httpd.conf and found on line #265 "Require local" which I changed to "Require all granted". According to the comments (above line #265) in the httpd.conf file, this is what you have to do manually to get your website online (from LAN mode to internet mode) AND this solved my 403 problem aswell.

smiling smiley

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: stevenmartin99 (Moderator)
Date: August 17, 2012 02:34PM

i didnt say that exactly.


websites are allowed and dissallowed using the online/offline

phpmyadmin/webgrind etc are apps and are permanently blocked from outside access.

you must edit the c:\wamp\alias conf files to allow access.


remember you are giving access to apps that may be able to cause damage to your sites on the network/on the internet depening how your router is setup

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

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: jp (---.bredband.comhem.se)
Date: August 17, 2012 03:18PM

ok, thanks for the answer Steven =)

just one more question because you know probably more about wamp than me.

The change i just did ( line #265 ) is this what the "put online" should do or did i do something stupid like gave all access to everyone to my webserver online? winking smiley tongue sticking out smiley

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: stevenmartin99 (Moderator)
Date: August 17, 2012 03:29PM

the online/offline feature changes this to allow sites.


you may have broken it now.

you will need to try the onine/offline and see if that changes between the two.

it uses a search/replace code to change it so if its not exactly how it should be including whitespace , it may not find it

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

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: jp (---.bredband.comhem.se)
Date: August 17, 2012 03:49PM

ahh ok, I understand.

well strangely enough it didn't work out of the box for me anyway confused smiley

Anyway the site works on the internet so that's fine by me =) winking smiley

Thanks for the help Steven winking smiley
Cheers!

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: stevenmartin99 (Moderator)
Date: August 17, 2012 04:00PM

the online/offline feature is broken in one of the downloads versions


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


replace your code with this and then save and restart wampserver.

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

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

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: Racs (176.13.149.---)
Date: August 20, 2012 01:08PM

I am also having a problem with permissions.

At first, after I installed WAMP (after many problems with Apache- thanks for the help on other threads), I was able to access localhost, but not phymyadmin.

Then I changed the code in the phymyadmin, according to advice from various sources, and now I can't even get access to my localhost.

Here's what my code reads:

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

I had a "deny from all" before the allow localhost, but that didn't work either. I also tried putting in an "allow from Machine_IP" after the allow from localhost (with the deny from all) and that didn't work either.

I don't need online access- I'm just trying to do some update my site to recent version of theme, wordpress, and make some cut and paste CSS changes.

Any clues? I'm really lost here- newbie and all. I know nothing about code.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 20, 2012 02:30PM

Racs,

Start a new thread,

Tell us all the problems you had and everything you have change up to now to solve them.

Tell us what version of windows you are runnning
Tell us what version of WAMP Server you installed.

Describe your specific problem rather than jumping on another thread.

Options: ReplyQuote
Re: Forbiddan- You don't have permission to access / on this server.
Posted by: zarus (203.82.95.---)
Date: August 30, 2012 11:19AM

yes I succeed ..... 127.0.0.1. thank you I love you ...

Options: ReplyQuote


Sorry, only registered users may post in this forum.