Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache path setting

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I'm running apache 1.3 on debian sarge.

It's running as user (by default) in group
I'm also running PHP, and shelling out to run a 3rd party program.

In order for this third party program to work /home/uname/programname/
Needs to be in the path of the user trying to run it.

When I run a
Code:
phpinfo();
I get
PATH /bin:/usr/bin:/usr/local/bin

In the Apache Environment section

How would I go about adding the directory I need to the apache environment path? Or am I better off switching the user apache runs as to one which has an account I can actually modify .profile's for?

Or shall I run off to the apache forum?
 
It is an apache question and not a PHP question, but the answer is to use SetEnv in your apache config.
 
Unfortunately that's not the answer.

In case anyone else stumbles upon this
Apache 1.3.x cannot set either the PATH or the TZ system variables using SetEnv

I've since moved my query to the Apache forum, but am not finding any help there, so if you guys happen to know, I'd still love to hear an answer anywhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top