Reputation: 311
I've just installed Symfony2 on my computer which run on mountain lion. When i try to access to localhost it works pretty well : when i type http://localhost/~myusername/Sites
i've got the expected result.
However, when i type http://localhost/~myusername/Sites/Symfony/web/config.php
, i've got a 403 error. I checked the permissions of the file Symfony but nothing's wrong here.
Someone has an idea about how to deal with it please ?
Upvotes: 1
Views: 5418
Reputation: 4996
Check that apache is running with your user/group (/etc/apache2/httpd.conf).
User myusername
Group staff
check that the userconfig is correct (/etc/apache2/users/myusername.conf). Should be something like:
<Directory "/Users/myusername/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
after that you should be able to acces the page like http://localhost/~myusername/Symfony/web/config.php
Sidenote; maybe you need a proper PHP installation, check http://php-osx.liip.ch therefor
Upvotes: 3