Access Forbidden!

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Access Forbidden!

Postby robm2002 » 05. September 2010 16:12

I'm trying to view a PHP file in my browser, but am getting the following error:

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
Sun Sep 5 16:00:43 2010
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1


The PHP file itself is in a sub-directory of the XAMPP localhost, ie. it's not in the root folder:

http://localhost/my-website.co.uk/phpThumb/index.php

The fact that it's not in the root folder is what seems to be causing the security issue.

I've been trying to fix this for the last few hours, my attempts have included:

- removing the entire "New XAMPP security concept" section from the httpd-xampp.conf file
- editing the "New XAMPP security concept" in various ways
- changing the folder permissions in my operating system (Mac OS X)
- restarting the Apache and mySQL server after every change

....and a few others that I can't remember. I must have read about 100 different links with suggested solutions, and nothing has solved the issue. Most people are suggesting that the "New XAMPP security concept" should be edited in various ways.

The "New XAMPP security concept" in the httpd-xampp.conf file is as follows:

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


Would be eternally grateful if anyone can help solve this problem.

Cheers!

Rob.
robm2002
 
Posts: 1
Joined: 05. September 2010 15:59

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 78 guests