The APACHE_RUN_USER variable has actually got nothing to do with
Apache itself, it is a environment variable that your specific Linux
distribution is setting itself in the init startup scripts to dictate
in some way what user things are run as or something. Normal Apache
distributions or other Linux distributions wouldn't have it.
Graham
On 25 November 2011 18:58, Chunlin Zhang zhangchun...@gmail.com wrote:
After I add WSGIProcessGroup directive,my app work ok now,but the
print sys.stderr,os.environ still www-data.
It works now but weird.
On Fri, Nov 25, 2011 at 3:28 PM, Chunlin Zhang zhangchun...@gmail.com wrote:
I user ubuntu 10.04 Apache/2.2.14 mod_wsgi 2.8.
I use WSGIDaemonProcess server user=demon group=demon ,but when I
print sys.stderr,os.environ,I see the result:
'''
[Fri Nov 25 15:23:12 2011] [error] {'LANG': 'C', 'SHLVL': '1',
'APACHE_RUN_USER': 'www-data', 'APACHE_PID_FILE': '/var/run/
apache2.pid', 'PWD': '/', 'APACHE_RUN_GROUP': 'www-data', 'PATH': '/
usr/local/bin:/usr/bin:/bin', '_': '/usr/sbin/apache2'}
'''
How can I change the user wsgi running?
Thanks
--
You received this message because you are subscribed to the Google Groups
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.
--
You received this message because you are subscribed to the Google Groups
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.