How to set PATH for cgi-scripts?

This is a discussion on How to set PATH for cgi-scripts? within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying to persuade Apache 2.0 look into /usr/local/bin when doing system() calls from a Perl ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2003
Jerullah
 
Posts: n/a
Default How to set PATH for cgi-scripts?

I am trying to persuade Apache 2.0 look into /usr/local/bin when doing
system() calls from a Perl cgi-script. I am using the Fedora Core 1
rpms and would prefer not to have to recompile anything.

I have tried to set

SetEnv PATH "/usb/local/bin:/usr/bin:/bin"

in the /etc/httpd/conf/httpd.conf, but it does not seem to work. The
script runs as user apache (no login shell).


(I can not hardcode the full path to the external executable, because
the system script is actually preformed by an external perl module by
another author, which expects the executable to be in the PATH,
period.)

Please help, I have googled and read tons of Apache documentation, but
I failed to find anything useful.

J.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:16 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0