1

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 ?

4
  • symfony.com/doc/current/book/… (pay attention to the Setting up Permissions section) Commented Jul 31, 2013 at 14:36
  • 1
    I've properly entered the following commands : rm -rf app/cache/* rm -rf app/logs/* but nothing changed :( Commented Jul 31, 2013 at 14:41
  • And can apache read what's inside your Symfony directory? Commented Jul 31, 2013 at 14:43
  • I don't know, is it in /etc/apache2/myusername.conf ? Commented Jul 31, 2013 at 14:47

1 Answer 1

3
  1. Check that apache is running with your user/group (/etc/apache2/httpd.conf).

    User myusername
    Group staff
    
  2. 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

Sign up to request clarification or add additional context in comments.

1 Comment

It was the good user/group (root/wheel), but for the userconfig the "FollowSymLinks" was lacking. Well it seems to work pretty for now thanks ! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.