I think you found the issue. Now is the proper procedure to just set the missing environment variables into the environ that is passed into the def application(environ, start_response): function?
os.environ when run from the wsgi app shows: HOME =/var/www LANG =C PATH =/sbin:/usr/sbin:/bin:/usr/bin PWD =/ SHLVL =2 TERM =vt100 _ =/usr/sbin/httpd ----------while when run from shell command as root, I get------------- CVS_RSH =ssh G_BROKEN_FILENAMES =1 HISTCONTROL =ignoredups HISTSIZE =1000 HOME =/root HOSTNAME =xxxxxxxx.sunbelt.org LANG =en_US.UTF-8 LD_LIBRARY_PATH =/opt/sqlanywhere12/lib32: LESSOPEN =|/usr/bin/lesspipe.sh %s LOGNAME =root LS_COLORS =rs=0:di=01;34:....: MAIL =/var/spool/mail/root OLDPWD =/home/sybase PATH =/opt/sqlanywhere12/bin32:/usr/lib/ qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/ bin:/root/bin PWD =/var/www/wsgi-scripts QTDIR =/usr/lib/qt-3.3 QTINC =/usr/lib/qt-3.3/include QTLIB =/usr/lib/qt-3.3/lib SHELL =/bin/bash SHLVL =1 SQLANY12 =/opt/sqlanywhere12 SQLANYSAMP12 =/opt/sqlanywhere12/samples SSH_ASKPASS =/usr/libexec/openssh/gnome-ssh-askpass SSH_CLIENT =192.168.xxx.xxx 64809 22 SSH_CONNECTION =192.168.xxx.xxx64809 192.168.xxx.xxx 22 SSH_TTY =/dev/pts/1 TERM =vt100 USER =root _ =/usr/bin/python -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
