I had the same problem.  Found out that the source was made in DOS and 
when uploaded to Linux, had those pesky ^M^J (or dos mode)...
setting it to notext in vi and resaving works.


On Tue, 2 Nov 2004 16:00:29 +0800, Miguel A Paraz <[EMAIL PROTECTED]> wrote:
> I'm running httpd 1.3.33 under WHM 9.9.7/cPanel 9.9.8-R5/WHM X 3.1.0,
> Red Hat Enterprise Linux ES release 3 (Taroon Update 2).
> 
> I can't run any CGI scripts - whether executable binaries, or shell scripts.
> 
> I upgraded this earlier from httpd 1.3.32 or 1.3.31 since WHM tracks
> the apache.org changes. Unfortunately, my client didn't have CGI
> scripts back then - only PHP - so I couldn't tell the difference.
> 
> The error_log isn't of much help, it just says: Premature end of script headers
> 
> As much as I'd like to use httpd 2.x. I need to stick to this for WHM
> compliance. :(
> 
> ----
> 
> Solution. WHM uses SuEXEC. The script being run was outside of the
> virtual domain owner's directory, which is forbidden by SuEXEC. I
> copied the script from the CPanel "cgi-sys" directory to the virtual
> domain's own "cgi-bin." Unfortunately, my client was only following
> the CPanel instructions of using http://clientsite/cgi-sys/script.cgi,
> where /cgi-sys/ maps to CPanel's home.
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to