Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optimisation of Setting Up Permission #2851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2013
Merged

Optimisation of Setting Up Permission #2851

merged 1 commit into from
Jul 28, 2013

Conversation

ph-il
Copy link
Contributor

@ph-il ph-il commented Jul 23, 2013

Replace www-data by the current user running apache using command line

Doc fix? yes
New docs? No
Applies to all
Fixed tickets #2850

Replace www-data by the current user running apache using command line
weaverryan added a commit that referenced this pull request Jul 28, 2013
Optimisation of Setting Up Permission
@weaverryan weaverryan merged commit 0543134 into symfony:2.2 Jul 28, 2013
@weaverryan
Copy link
Member

Hey Philippe! Very nice to see you on here! I'm very happy to see this PR - it's something I knew we should have for awhile, but had never gotten to it. I think this will make life much easier for beginners. I made only very minor tweaks at sha: bafeaaf

Thanks!

@ph-il
Copy link
Contributor Author

ph-il commented Jul 29, 2013

Thanks,

Should have more when we find thing.

@choomz
Copy link
Contributor

choomz commented Aug 6, 2013

Hi there,

I am not sure that this config will work for everyone. For exemple, I have actually a gnome-user-share running.
Thoses processes are running under my current loggued user (throught apache).

But, my web server is running under www-data. So when you are doing head -1, it returns my current user (because processes are listed first by grep), and not the wanted www-data.

@xabbuh
Copy link
Member

xabbuh commented Aug 9, 2013

@choomz what is your output of ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root?

@choomz
Copy link
Contributor

choomz commented Aug 9, 2013

As I told just above, I have two users that are using apache so the ouput is something like :

valentin  3402  0.0  0.0   4520   544 ?        Ss   Aug05   0:05 /usr/lib/apache2/mpm-worker/apache2 -f /usr/share/gnome-user-share/dav_user_2.2.conf -C Listen <port>
www-data  4624  0.0  0.6  68228 23792 ?        S    Aug08   0:00 /usr/sbin/apache2 -k start

Note that it's not really an issue for me, just for new users which are in this case, the current user (valentin for me) is not the one we want, it should be www-data.

@xabbuh
Copy link
Member

xabbuh commented Aug 9, 2013

I was just wondering if there is anything we could grep better for. Unfortunately, it doesn't seem so. At least no distribution-independent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants