LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2003, 06:32 PM   #1
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Rep: Reputation: 15
running cgi scripts in other directories


Hi everybody,
I wanted to know if I could run CGI-Perl scripts in a directory other than the /cgi-bin directory. The directory structure of my webserver is something like this -

...
...
/cgi-bin
/httpdocs
/httpsdocs
...
...

I wanted to know if I could execute CGI-Perl scripts inside a sub-directory under /httpdocs

For instance - /httpdocs/scripts/try.cgi

The URL - http://www.domain.com/ - points to the /httpdocs directory and the URL - http://www.domain.com/cgi-bin/ - points to the /cgi-bin directory.

Right now I can only run scripts in the /cgi-bin directory.

Thank You.
 
Old 09-16-2003, 05:56 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
//Please don't crosspost. It's bad netiquette, a waste of time for LQ members and not respectful towards those whose resources you're using. The fact your question wasn't answered yesterday doesn't give you any right to crosspost. Bump the thread if you have to, but better try being patient. If you're impatient or need it really quick, consider supporting the Linux case by hiring a local Linux guru.

That said, it's an Apache thing. Look in httpd.conf for how the container for the cgi-bin directory was set up with ExecCGI.
 
Old 09-16-2003, 03:01 PM   #3
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Original Poster
Rep: Reputation: 15
sorry for the cross post. guess i was a bit impatient. anyway, for a college student, hiring a professional to do a job isn't feasible.

anyways, my mistake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems in running cgi/perl scripts... raymond Linux - General 17 02-09-2010 04:06 AM
Running perl scripts outside of cgi-bin ylikone Programming 1 09-08-2005 04:34 AM
Problem: Running cgi scripts with userdir option beatlelane Fedora 4 04-16-2004 03:06 AM
Running CGI scripts in Tomcat 4...not happening!!! vous Linux - Software 2 02-05-2004 03:52 AM
Running Perl/CGI scripts hso_sof Linux - Newbie 3 08-22-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration