403 Forbidden ERROR
Posted by: sietse11 (---.adsl.online.nl)
Date: January 14, 2014 01:01AM

Wamp Icon = Green (rofl duh)
Apache version = 2.4.4
PHP version = 5.4.16
SQL version = 5.6.12
WampServer version = 2.4
OS = XP SP3 32BIT


Hey I installed wampserver and removed it about 3 times.
Before installing it the 4th time, I removed all SQL folders in appdata.

I then started up myphpadmin and removed all users that weren't root.
So I removed anonymous cause it seemed to have access to my entire sql database

I am using it for a game which requires 3 ports.
The ports have been opened, the user for the game server has been added.
Game server can connect and has all the rights needed to use the database.
So that part works fine.

Opend up wampmanager.conf changed status to online

I then proceeded and downloaded a working control panel for in the www folder.
Added a user for it in myphpadmin ran the php installation works perfectly.
Even opened up port 80

HOWEVER

(THE PROBLEM)
when I type in my IP(WAN) I get this message,
----------------------------
Forbidden

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

is this because I removed the anonymous user from phpmyadmin?
Because I feel like the ports should be working since the / should be referring to the www folder right?

please help me XD



Edited 1 time(s). Last edit at 01/14/2014 01:02AM by sietse11.

Options: ReplyQuote
Re: 403 Forbidden ERROR
Posted by: sietse11 (---.adsl.online.nl)
Date: January 14, 2014 01:25AM

HEY HEY, I think I found it.

In the folder>file Apache2.4.4\conf\httpd.conf

I changed this line
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all

to

# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all

Would this be the correct way to resolve this issue?
Or does this open up abuse posibilities?

Options: ReplyQuote
Re: 403 Forbidden ERROR
Posted by: RiggsFolly (---.as13285.net)
Date: January 14, 2014 11:09AM

That would allow anybody in the universe to access your site, which I assume is what you want.

The Apache 2.4.x syntax should actually be

# onlineoffline tag - don't remove
Require all granted

Read through this post [forum.wampserver.com] it corrects some woopsies in the WAMPServer 2.4 release.

---------------------------------------------------------------------------------------------
(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
Re: 403 Forbidden ERROR
Posted by: sietse11 (---.adsl.online.nl)
Date: January 14, 2014 02:23PM

Thanks, I'll have a look at that =D

Options: ReplyQuote
Re: 403 Forbidden ERROR
Posted by: RiggsFolly (---.as13285.net)
Date: January 14, 2014 03:23PM

Its actually more likely to be an IPV4/IPV6 thing.


If you just want to use WAMP as a local test evnironment it would be better to use

Require local

This says it can be accessed from: localhost, 127.0.0.1 and ::1

The ::1 is the IPV6 equivalent of the ipV4 loopback address 127.0.0.1


Make sure you have this in your c:\windows\system32\drivers\etc\hosts file

127.0.0.1  localhost
::1 localhost



HOW TO EDIT THE HOSTS FILE
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

---------------------------------------------------------------------------------------------
(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
Re: 403 Forbidden ERROR
Posted by: sietse11 (---.adsl.online.nl)
Date: January 14, 2014 04:06PM

Actually, I am using it for online use.
I'm currently hosting a website and game server.
And I'm hosting it from a living room.

From my tests so far my solution worked fine, and since all phpmyadmin users can only be accessed from localhost, the database should be safe.

In order to access the the database from anywhere I plan on using remote access software. This in case I have to reboot the server from afar. If I were to use windows remote access, I wouldn't be able to do this. Since it requires a password.

Thanks for your reply tho winking smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.