littlevisuals Posted August 15, 2009 Share Posted August 15, 2009 Hi, having a real problem here with Apache. I have activated it locally and works fine, but when I set up a Virtual Host it gives me a 403 forbidden error? Im using Mac OS X with the zend framework. I know its got to do with permissions but i've changed them all using the wonderful 'BatChmod' application. It used to give a 500 error when I typed something random to see if it saw the file. Now all I get is the 403 forbidden error? Any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/170443-solved-403-error-and-htaccess/ Share on other sites More sharing options...
littlevisuals Posted August 16, 2009 Author Share Posted August 16, 2009 After many hours Ive solved the problem. If anyone wants to know here is the solution. The 403 errors have to do with permissions , which threw me off the ball a bit. The actual issue was with the .htaccess file having the rewriteEngine on , which went back to apache and 403'd. I had this in my config <Directory "/Users/username/Sites/mywebsite/public"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> By changing AllowOverride None to AllowOverride All I got the 403 so I added the line Options +Indexes +FollowSymLinks +ExecCGI and low and behold it worked. Its a tricky one as the errors threw me on a wild goose chase. Anyways the final code looked like this <Directory "/Users/username/Sites/mywebsite/public"> Options Indexes MultiViews Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> Hope this can save someone the time I wasted in future! Quote Link to comment https://forums.phpfreaks.com/topic/170443-solved-403-error-and-htaccess/#findComment-899466 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.