LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2003, 01:14 PM   #1
slimasian
LQ Newbie
 
Registered: Aug 2003
Location: A man of many places.
Distribution: Linux Redhat 9.0
Posts: 2

Rep: Reputation: 0
CGI Does not seem to be working


Hey All,

Linux newbie here. I got everything up and running on my Linux Redhat 9.0 distribution except for one thing...CGI scripts on my Apache server. I made sure that the scripts had the right permissions, checked my httpd.conf file to make sure that the default CGI directory was /var/www/cgi-bin. I try to execute a simple hello world script and get a server error. I checked the log and it says "premature end of script headers." I assume this means that the CGI has not been properly configured on my Apache. I executed httpd -l and did not see the mod_cgi or mod_ssi on there, and I hear that's what is needed to run CGI. The modules are there in the modules directory of my apache...how do I get them in my Apache compilation? A line of code in my httpd.conf file perhaps? Any help would be greatly appreciated. Thanks!

-slim
 
Old 08-19-2003, 02:12 PM   #2
arobic
Member
 
Registered: Jul 2003
Location: Geneva, Switzerland
Distribution: Debian 3.1, SLC3 (based on RHEL)
Posts: 84

Rep: Reputation: 15
My guess would be that the error comes from the script themself, not from the webserver. Otherwise, It would not provide an error log.

Maybe you really did a "premature end of script headers". Did you put two line ('\n\n') at the end of your header??

If it is not the case, well, I am not very experienced with web server configuration and I can't help you!

Hope this helps!
 
  


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
cgi shell script: ssh not working kitmui Programming 2 04-21-2010 03:46 PM
installing cgi perl to get lynx working hypnotiks Linux - Newbie 1 12-19-2004 03:06 PM
CGI not working in Apache shrey_j Programming 4 09-22-2004 01:28 AM
PERL not working - CGI? redhatbeatswin Linux - Newbie 3 07-17-2004 06:17 PM
ssi and cgi not working... Flawless Slackware 12 03-09-2003 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 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