LinuxQuestions.org
Register a domain and help support LQ
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 12-05-2003, 02:40 AM   #1
lonny
Member
 
Registered: Nov 2003
Posts: 46

Rep: Reputation: 15
Apache 2.0 so many .conf files!


I am trying to get cgi scripts to work on apache. The problem is that there are 3 config files and im not really sure which one to edit. There are 3 files httpd2.conf, commonhttpd.conf and httpd2-perl.conf. I ran the test cgi file that came with mandrake and it works fine but mentioned that i have to edit one of the .conf files. But when I write my own cgi script and try to run it in explorer (from the same directory as the test file) it just asks if i want to download the file instead of running the cgi script. Im kinda stuck here and was wondering if anybody had got cgi scripts working on apache 2.0? Thanks.
 
Old 12-09-2003, 02:15 AM   #2
Guitarzan
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
Sounds to me like you need to edit the commonhttpd.conf file. If you have your cgi script in a directory other than /var/www/cgi-bin then the Apache server won't recognize it (by default) as being a script. If you really need to put the script somewhere other than the default directory, then you will need to edit the commonhttpd.conf file and add a ScriptAlias (you'll find an example one in there) pointing to your cgi-bin directory.

Hope this helps...

KJ
 
  


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
apache httpd.conf ilnli Linux - Software 9 01-11-2005 07:58 AM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 05:03 PM
Apache conf bumfan Linux - General 3 04-29-2004 06:40 PM
Apache conf files 1111 Linux - Newbie 2 07-20-2003 03:29 PM
Bind and DNS information conf files and zone files aaronluke Linux - General 1 10-13-2002 10:41 AM


All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration