On Jan 15, 2:48 pm, scott_in_springfield <[EMAIL PROTECTED]>
wrote:
> Thank you, Graham.
>
> > In the same directory as the Apache executable, 'httpd', 'apache2' or
> > whatever your platform calls it, there should be an 'envvars' file.
>
> I didn't find this file anywhere. Found no 'envvars' on the entire
> system. Google research showed that apachectl loads envvars in an
> Apache2 environment but found no mention of my on-server apache
> documentation of apachectl nor was the string found in the apachectl
> script itself. Found a few other candidates, but no real luck in
> determining where this variable injection could be implemented.
>
> /etc/httpd
> /etc/sysconfig/httpd
> /usr/lib/httpd
> /usr/sbin/httpd
> /var/lock/subsys/httpd
> /var/log/httpd

For that layout, it should be called /usr/sbin/envvars. Find your
apachectl script and look in it. Would have something like:

# |||||||||||||||||||| START CONFIGURATION SECTION
||||||||||||||||||||
# --------------------
--------------------
#
# the path to your httpd binary, including options if necessary
HTTPD='/usr/local/apache-2.2.4/bin/httpd'
#
# pick up any necessary environment variables
if test -f /usr/local/apache-2.2.4/bin/envvars; then
  . /usr/local/apache-2.2.4/bin/envvars
fi

Anyway, this shouldn't be required as you should be able to achieve
the same thing using  mod_python PythonPath directive. I only had a
chance to look at your post quickly and got so lost in all the stuff
you sent I couldn't see why PythonPath didn't solve your problem.

Graham

> -----------------------------
> [root]# cat /etc/sysconfig/httpd
> #
> # Configuration file for the httpd service.
> #
> #HTTPD=/usr/sbin/httpd.worker
> #OPTIONS=
> #HTTPD_LANG=C
>
> # Added in attempt to get the $PYTHONPATH variable into the
> # Apache2 environment for use with Django.
> # 2008/01/14 ... Didn't work so commented out.
> #PYTHONPATH=/Working/django:/Working/modules:/Working/projects
> -------------------------------
>
> I wonder if its something to do with a new approach by Apache2.2 or
> RHEL5?
>
> > > I KNOW THAT'S A LOT OF INFO, BUT...
>
> > Possibly too much. ;-)
>
> Um. Yea. Data-diarrhea? Sorry about that.
>
> My error persists after some more monkeying around. As a await the
> golden arrow from one of you I'm researching why RHEL5 has no envvars
> file. Anyone else out there running Django successfully with this or
> similar Mod_Python3.2/Apache2.2/Python2.4/RHEL5? Did you run into any
> of this?
>
> Scott
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to