LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CGI Does not seem to be working (https://www.linuxquestions.org/questions/linux-newbie-8/cgi-does-not-seem-to-be-working-83533/)

slimasian 08-19-2003 12:14 PM

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

arobic 08-19-2003 01:12 PM

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!


All times are GMT -5. The time now is 12:11 AM.