I have been fighting an apache server for 2 days, trying to figure out why this thing keeps denying access to the server. Check out the settings:
<VirtualHost 192.168.15.4:80>
DocumentRoot "/var/www/phreebooks"
ServerName billing.website.com (omitted for security)
<Directory "/var/www/phreebooks">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
File permissions throughout the entire directory of phreebooks, assigned with the command
chown -R www-data:www-data phreebooks
drwxr-xr-x 8 www-data www-data 4096 2013-11-26 21:11 phreebooks
&
drwxr-xr-x 5 www-data www-data 4096 2013-11-26 21:57 install
As soon as I reinstalled the webserver, I got the "it works" index.html.
But when I try to run the install script at billing.webserver.com/install/install.php, I get:
403: You don't have permission to access /install/install.php on this server.
I tried creating a test file, test.php, in the /var/www/phreebooks directory. It allowed me to access the file, but when I move it into any subdirectory, It gives the error, above, access denied.
I have tried completely stripping the apache server out, using apt-get purge [apache packages]. Which everything was removed and then reinstalled. It is having no effect. I've never had this problem with an apache server, before. Please let me know if there are any more details you need...