After moving a website folder on my local development machine to another drive, then moving it back, I got a 403 error. Most of this problem had probably to do with rights that got messed up. After deleting the code and restoring it from SVN, the rights seemed allright. The error stayed however.
The setup is a bit complex, as follows:
I have Ubuntu 10.4 as development machine, trying to mimic the server as much as possible
We use Eclipse + SVN and I create all projects in a local folder under my user account
In /var/www-vhosts I create folders for each vhost, like this one: test.localhost
test.local/index.php: includes the index file of the project
test.local/.htaccess is a dynamic link to the htaccess file in a project subfolder
I get the following error in the apache error log:
[Thu Jul 08 15:55:56 2010] [crit] [client 127.0.0.1] (13)Permission denied: /var/www-vhosts/test.localhost/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
The problem seems to be the .htaccess file, or the link to it.
When I empty the htaccess, nothing changes
When I remove the link, the index-include produces some output (in the apache error log)
When I remove the link and replace it with the actual file, I get another error:
[Thu Jul 08 16:47:54 2010] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www-vhosts/test.localhost/test
I'm lost here, don't know what to do next. Do you have any ideas what I can try? This setup has worked before, but I don't know what is different now.