Re: [Cppcms-users] Apache2/FCgi external server: socket ownership problems
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-01-11 08:28:32
|
On Tuesday 11 January 2011 04:14:39 pm Artyom wrote: > You likely need to run the Apache and CppCMS under same group, > This is very good idea for security reasons. > > Now setting the socket to a+w is bad... If you really > want to do this (which I do not suggest) > > Put at the main() of your progam > > umask(0777) > I understand the security implications. I was simply looking for something convenient, to use locally on my development platform. The problem is, on a Debian system, apache runs as www-data, and even if my app has the group www-data, the group does not have write access to the socket, so I still need to sudo to fix it after each compile and restart: I was trying to find a way to lazy my way out of this ;) Never mind about this. I'll find an acceptable solution, both convenient and secure. Thanks. A. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |