Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to set PATH for cgi-scripts?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  CONNECT Attach Foiled  
Author Message
jerullah

External


Since: Dec 12, 2003
Posts: 1



(Msg. 1) Posted: Fri Dec 12, 2003 9:35 am
Post subject: How to set PATH for cgi-scripts?
Archived from groups: alt>apache>configuration (more info?)

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.

 >> Stay informed about: How to set PATH for cgi-scripts? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
apache2 path question - Hello, i am using apache 2.0.48 with mod_perl 1.99. when i try to read the content from a file with <--------------> $foo = 0; open (SEARCHITEMS, "<../".$user.".searchitems"); while (<SEARCHITEMS>) { chomp(); @feld...

weird problem with URL path - Hi, I just run into a weird problem with my new updated apache server. If I type in http://mydomain.com/directory/ the server loads up the default index.htm just fine. But if I remove the back slash of the URL, ie. if I type..

Pretty Scripts - Dear Friends, I'm a newbie who has downloaded Apache 2.0.47 several weeks ago, and has built my own cgi app (an .exe from the Clipper DDMS compiler -- based on C). I'm running on win98se and winXp now. I'm using localhost successfully now, but next....

Can run cgi scripts in different directory? - I am trying to get apache to run scripts from a different directory other than the standard one. (/var/www/cgi-bin). I have added the add handler statement and believe I have set up apache correctly. I here that It has something to do with chroot? Any...

full path link required question - I have just migrated my site over to a new host's server (Apache) Only by adding the full path will links work . (.htm or .html etc) An example is on the old sever (Cobalt) I could link with www.tradetiler.com/knee now I have to link with ..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]