Apache on OS X: Fixing file system permissions for Symfony or Laravel

I use Apache2 on OS X for my PHP development. I work with both Symfony2 and Laravel. Both the frameworks needs certain directories to be writable. And chmod sometimes doesn’t work well (may be because I don’t understand the permissions on OS X well?). Whether it’s my fault or not, here’s quick help:

(1) Open up your httpd.conf and checkout the values for “User” and “Group”. In my case it is “_www” and “_www”.

(2) Let’s make them owner of the directory in question. In the case of Laravel 4, something like:

That’s “User:Group” combination for apache. Now everything should work fine.

Leave a Reply

Your email address will not be published. Required fields are marked *