PDA

View Full Version : error 403 access forbidden on windows xp


moses444
01-21-2010, 04:36 PM
i keep getting this error after i have tried to use another directory for php files as opposed to htdocs default dir.
I did try to edit httpd.conf file. below is the short version of it:
thank you for your help :)
=============================
=============================
ServerRoot "C:/Program Files/xampp/apache"
...
DocumentRoot "C:/Study/PHP"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
...
<Directory "C:/Study/PHP">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>


# "C:/Program Files/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
##the line below was <Directory "C:/Program Files/xampp/cgi-bin">
<Directory "C:/Study/PHP">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

120
01-22-2010, 01:51 PM
In effect you have defined this twice {here the second is show}:

<Directory "C:/Study/PHP">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

I doubt this is your problem, but I would get rid of it (or just comment it out).

Also, windows paths are C:\Study\PHP (not C:/Study/PHP) Plus, you have a bit of a mix of UpPeR AnD LoWeR CaSe going on there - be aware of it.

Sort that, restart apache, put an index.html file in C:/Study/PHP - something like:

<html><body><h1>THIS IS C:/Study/PHP</h1>
</body></html>


and see it will serve. If not, check the apache logs for clues.
HTH