I've just manually installed Apache and PHP, and everything is working fine apart from one thing: I can't get a directory listing or open any files. A slight problem.
It works fine if I change my root to the htdocs in my Apache directory, but it refuses to work when I change it to the directory I want.
I've PHP installed in F:\PHP
, I have Apache installed in F:\Program Files\Apache
, and my root is F:\www
(this last thing is the problem).
Here's a snippet of my httpd.conf
<Directory "F:/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
The directory exists with test.php in it and I get 403 Forbidden error when I try either.
If I change the line <Directory "F:/www">
to point to the htdocs directory mention above and restart Apache, it works fine. Why doesn't it like F:/www?
What have I done wrong? Thanks!
Ugh. Complete newb error. I tried to delete the question, but it won't let me.
I didn't change DocumentRoot
in the HTTPD.CONF, I only added a <directory>
statement.
Now it works fine.
*facepalm*