httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddy Sturg <>
Subject Re: [users@httpd] Change $PATH in apache
Date Tue, 21 Jun 2011 17:01:19 GMT
I've tried that, it did not work.  To be clear - I'm starting apache with
the apachectl script.  As root, I've adjusted my PATH, `which python` shows
me that I'm pointing to the correct python.  Then I run apachectl start and
I still get the same error.

I guess I need to get server-info working so that I can report on what the
PATH is actually set to.  Unfortunately, I'm having a problem with that too.

I'll start a new thread since that is a different issue.

Thanks for the note, Igor.


On Mon, Jun 20, 2011 at 7:28 PM, Igor Cicimov <> wrote:

> Run those commands in terminal and start apache from the same terminal. To
> make it permanent add those line in the shell rc file for the user you are
> starting apache with.
> Igor
> On Tue, Jun 21, 2011 at 6:42 AM, Eddy Sturg <> wrote:
>> Hey folks,
>> I'm sure this is a dumb question, but I've searched and read - all to no
>> avail.
>> httpd-2.2.3-43.el5.centos.3
>> CentOS release 5.5 (Final)
>> And I've installed the current python from source in /opt/python
>> We're trying to run trac and svn which include some python scripts.  I'd
>> really like to use the python that I've installed in /opt, but it appears
>> that apache is using the default python /usr/bin/python.
>> So, I figured I'd just edit apachctl and add something like:
>> PATH=/opt/python/bin:$PATH
>> export PATH
>> But, that did not work.  After doing some research, it looks like maybe I
>> should be doing something like the SetEnv directive in httpd.conf, is that
>> right?
>> Thanks for your help,
>> Eddy
>> ---------------------

View raw message