Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a user to apache group on Mac Os X?

Tags:

macos

apache

I'm actually trying to run Symfony2 on my MacBook Pro (Mac OS X 10.6).

When i launch my application by apache, all cache and log file are created by the _www:_www user/group. But, i already have to edit these files in the CLI, with my own user.

My question is : how to add my user to the _www group ?

I have tried to edit the /etc/group to add my user name to _www group, restart apache : fail I have also tried to edit /etc/apache2/httpd.conf to change user and group used by Apache : complete error acces.

Anyone have an idea ?

like image 745
mikaelrandy Avatar asked Dec 12 '10 23:12

mikaelrandy


People also ask

How do I find Users Group on Mac?

Open System Preferences » Users & Groups, unlock the pane if necessary, right-click your user name (the single list entry in the Current User section), and select Advanced Options…. It's the field Account Name in the newly opened dialog window. This dialog also shows you your primary group.

Where is Apache folder in Mac?

By default, the Apache Virtual Host configuration on Mac OS X is located in a single file: /etc/apache2/extra/httpd-vhosts.


1 Answers

sudo dseditgroup -o edit -a your_username -t user _www 
like image 91
swisscheese Avatar answered Sep 26 '22 02:09

swisscheese