Access denied (403) for my project site [SOLVED!]
Posted by: fjallis (---.na.cust.bahnhof.se)
Date: January 19, 2016 08:03PM

1 - Windows version used (Specify version number AND whether 32 or 64 bit): 10, 64 bit
2 - Version WampServer (Specify version number AND whether 32 or 64 bit): 2.5, 32 bit
3 - Apache Version: 2.4.9
4 - PHP Version: 5.5.12
5 - MySQL Version: 5.6.17
6 - What color is the WampServer icon (in the notification area of the taskbar): Green
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines with the name [localhost] in them?
* Active means no # at the beginning of the line.
127.0.0.1 localhost
127.0.0.1 stagg25

::1 localhost
::1 stagg25


If the WampServer icon is green:

8 - Do you have access to localhost (Homepage WampServer)? Yes
9 - Do you have access to phpMyAdmin? Yes

10 - If you refer to an error message, please include the EXACT wording of the error in your post
Forbidden

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

Apache/2.4.9 (Win32) PHP/5.5.12 Server at stagg25 Port 80
11 - If you use an Antivirus and / or Firewall, please include the names of these: AVG
12 - What is the full path to the installation of WampServer (eg D:\wamp\): C:\wamp

I've walked through the troubleshooting guide, all the post in the forum (hopefully) and all other sites I can thick of. No luck!

Here's my vhost-file:

<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/stagg25"
ServerName stagg25
<Directory "c:/wamp/www/stagg25">
Options Indexes FollowSymLinks
AllowOverride All
Require local
</Directory>
</VirtualHost>

What should I do?
Best regards,
Johan



Edited 1 time(s). Last edit at 01/20/2016 02:01PM by fjallis.

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 12:34AM

Hi

Is WAMPServer installed on the same PC that you are using the browser on?

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: fjallis (78.41.240.---)
Date: January 20, 2016 07:20AM

Yes.

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 10:46AM

So what are you entering into the browser address bar?

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: fjallis (78.41.240.---)
Date: January 20, 2016 10:48AM

Chrome: 1) stagg25 2) stagg25/ 3) [stagg25] 4) [stagg25]

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 10:51AM

Try another browser like FireFox or even IE

Chrome has some odd issues when it come to accessing the local machine.

Does it work with another browser?

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: fjallis (78.41.240.---)
Date: January 20, 2016 10:56AM

Same error in IE.sad smiley

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 11:37AM

Can you ping stagg25


Open a command window and do

ping stagg25

then

ping /4 stagg25

Do you get something like this as a reply

D:\php_source>ping localhost

Pinging MACHINE [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

D:\php_source>ping /4 localhost

Pinging MACHINE [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: fjallis (78.41.240.---)
Date: January 20, 2016 11:40AM

Both ping's did work.

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 11:49AM

Have you uncommented this line in the httpd.conf file?

# Virtual hosts
Include conf/extra/httpd-vhosts.conf      <--- this line must be uncommented

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: fjallis (78.41.240.---)
Date: January 20, 2016 11:52AM

Absolutely.

Options: ReplyQuote
Re: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 12:23PM

Then I am running out of ideas.

Do you want to try a Team Viewer session so I can see exactly what is going on?

If so send me a Private Message with your TeamViewer ID and PASSWORD

---------------------------------------------------------------------------------------------
(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: Access denied (403) for my project site
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 20, 2016 02:02PM

For completeness

It turned out to be an attempt to do a quickstart recovery of a Joomla site, but somehow there was a .htaccess file in the stagg25 folder that was denying all access.

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