Permissions in a Local Dev Environment (OS X)

It seems unorthodox but I added my user to the _www group:

$ sudo dseditgroup -o edit -a 'whoami' -t user _www

Finally, I gave write privileges to the group:

$ sudo chmod -R g+w /path/to/dir

That seems to work, but like I said seems like a weird solution to add my user to the _www group.

Maybe someone out there has a better solution.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)