Page 1 of 1

Access forbidden!/Error 403

PostPosted: 30. December 2013 21:18
by ybiyani
This is my first day with php.....I just installed xampp 1.8.2 and started the services.

http://localhost/xampp/ works

When I try to open http://localhost/D://someuser/xampp/htdocs/index.php in a browser I see the following message

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

localhost
Apache/2.4.7 (Win32) OpenSSL/0.9.8y PHP/5.4.22




I have modified

"D:\someuser\xampp\apache\conf\extra\httpd-vhosts.conf" &

"D:\someuser\xampp\apache\conf\original\extra\httpd-vhosts.conf"

by adding the following line....

<VirtualHost *:80>
DocumentRoot "D:/someuser/xampp/htdocs"
<Directory "D:/someuser/xampp/htdocs">
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

What do I need to do to avoid the above error message?

Re: Access forbidden!/Error 403

PostPosted: 30. December 2013 21:42
by JJ_Tagy
ybiyani wrote:...
When I try to open http://localhost/D://someuser/xampp/htdocs/index.php
...


Once you get relative vs. physical path you will understand. Try just http://localhost/index.php

Re: Access forbidden!/Error 403

PostPosted: 30. December 2013 22:10
by ybiyani
Hello JJ

Thx for the reply.

After updating

D:\someuser\xampp\apache\conf\httpd.conf with

<Directory "D:/someuser/xampp/htdocs">
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>

The file works.

Thx for your help.