RE: [users@httpd] Re: cgi scripts outside of cgi-bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: news [mailto:news@xxxxxxxxxxxxx]On Behalf Of Christopher J.
> Bottaro
> Sent: Dienstag, 13. Dezember 2005 23:07
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] Re: cgi scripts outside of cgi-bin
> 
> 
> Joshua Slive wrote:
> 
> > On 12/13/05, Christopher J. Bottaro <cjbottaro@xxxxxxxxxxxxxxxxxxxx>
> > wrote:
> >> The exact same script works if I put it in Apache's 
> cgi-bin dir.  Any
> >> ideas? I'm using Apache-2.0.54. Thanks for the help.
> > 
> > What exactly happens when you try this?  What is in the 
> browser?  What
> > is in the error_log?  Most importantly: what is in the suexec_log,
> > since I'd guess the problem is with suexec.
> 
> Oh, forgot to mention that...:)  error_log says this:
> 
> [Tue Dec 13 15:03:19 2005] [error] [client 127.0.0.1] Premature end of
> script headers: 

Congratulations! The CGI program was identified by apache and executed as a CGI. So your config is working.

Sadly, your program is not. The error message means that the script did not produce the required CGI header information before any other data.

Does the same script work when it is in a "normal" cgi directory? If not, you have to fix the script:
http://httpd.apache.org/docs/2.0/howto/cgi.html#troubleshoot
Also, switch on script-logging get more debug http://httpd.apache.org/docs/2.0/mod/mod_cgi.html#scriptlog.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

PS - It may be your script is failing due to some complication from suexec (eg permissions problem). Try to get a simpler "hello-world" running before tackling suexec..

  

>test.cgi, referer:
> http://localhost/~sti/tragence/webapp/interfaces/customer/webl
> ib/pb_upload/
> 
> suexec.log says this:
> 
> [2005-12-13 15:03:19]: uid: (501/sti) gid: (501/501) cmd: upload.cgi
> [2005-12-13 15:03:19]: directory is writable by others:
> (/home/sti/public_html/tragence/webapp/interfaces/weblib/pb_upload)
> 
> If I do apachectl -V, it says that it's looking for SUEXEC_BIN
> in /usr/sbin/suexec.  The strange thing is that 
> /usr/sbin/suexec doesn't
> exist.  I'm using Fedora Core 4 and I can't figure out which package
> installs suexec.
> 
> > Joshua.
> 
> Thanks for the help,
> -- Christopher
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux