403 Forbidden
Posted by: bubenwosu (41.58.91.---)
Date: March 11, 2014 02:02PM

I successfully installed WAMPServer 2.4 on Windows7. Everything seems to work fine, except that when I try to access localhost/wamp/www/index.php it throws the following exception:

"Forbidden You don't have permission to access /c:/wamp/www/index.php on this server"

PHPMYADMIN and LOCALHOST are running good.

I have done all the advised modifications on the hhtp.conf and httpd-vhosts.conf files. But the same error occurs. What could be the problem here?

Options: ReplyQuote
Re: 403 Forbidden
Posted by: RiggsFolly (---.as13285.net)
Date: March 11, 2014 02:52PM

What did you do to the VHOST File?

---------------------------------------------------------------------------------------------
(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
Posted by: bubenwosu (41.58.87.---)
Date: March 11, 2014 03:31PM

I did this:

<VirtualHost *:80>
ServerAdmin user@localhost
DocumentRoot "C:/wamp/www"
ServerName localhost
</VirtualHost>

Options: ReplyQuote
Re: 403 Forbidden
Posted by: RiggsFolly (---.as13285.net)
Date: March 11, 2014 03:47PM

Just that?

---------------------------------------------------------------------------------------------
(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
Posted by: bubenwosu (41.58.87.---)
Date: March 11, 2014 03:55PM

YES; Just that.

Options: ReplyQuote
Re: 403 Forbidden
Posted by: RiggsFolly (---.as13285.net)
Date: March 11, 2014 10:26PM

Try this then, it adds instructions to tell Apach who is allowed to access that folder!

<VirtualHost *:80>
    ServerAdmin webmaster@homemail.net
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    <Directory  "c:/wamp/www">
        AllowOverride All
	Require local
    </Directory>
</VirtualHost>

---------------------------------------------------------------------------------------------
(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
Posted by: bubenwosu (41.58.91.---)
Date: March 12, 2014 01:29PM

Thank you RiggsFolly; it works now. Seems I dont have to type in the whole directory path in the web broswer. it comes up with:

localhost/index.php

thank you again;

Options: ReplyQuote


Sorry, only registered users may post in this forum.