Access forbidden!/Error 403

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Access forbidden!/Error 403

Postby ybiyani » 30. December 2013 21:18

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?
ybiyani
 
Posts: 2
Joined: 30. December 2013 21:00
Operating System: Windows 7 -64 bit

Re: Access forbidden!/Error 403

Postby JJ_Tagy » 30. December 2013 21:42

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
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Access forbidden!/Error 403

Postby ybiyani » 30. December 2013 22:10

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.
ybiyani
 
Posts: 2
Joined: 30. December 2013 21:00
Operating System: Windows 7 -64 bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 100 guests