[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: [LI] httpd setup



Yeah the #!/usr/local/bin/perl is correct, i checked it through whereis perl
command ...
also sure, i use \n\n at the end of print statements.

please help !
regards,
gaurav.



> -----Original Message-----
> From: owner-linux-india@xxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-linux-india@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of WebMaster:
> prayagonline.com
> Sent: Sunday, October 31, 1999 3:50 PM
> To: linux-india@xxxxxxxxxxxxxxxxxxxxx
> Subject: [LI] httpd setup
>
>
> Hi,
> 	I had trouble setting up httpd properly on my Linux Red Hat 6 system
> Actually, everything is okay, except that i am unable to run my
> cgi scripts.
> On running the scripts i get the 500 server error.
> and in the logs " Premature end of script headers."
>
> Please note:
> I have placed my scripts in the /home/httpd/cgi-bin directory
> The script is given the right permissions ( ie executable)
> THe script runs fine from terminal ( hence error free)
> Also it has the standard line content-type: text/html\n\n
>
> finally, the httpd.conf has the directory definition for the cgi-bn
> directory as:
>
> <Directory /home/httpd/cgi-bin>
> AllowOverride None
> Options ExecCGI
> AddHandler cgi-script .pl
> </directory>
>
> Please help
> Thanks a lot !
> Regards,
>
> Gaurav Agarwal
> Webmaster - prayagonline.com
> http://www.prayagonline.com>
> ICQ pager no: 37730201
>
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available.  Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.