Re: My apache server stopped doing CGI

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

 



2009/2/16 André Warnier <aw@xxxxxxxxxx>:
> Kevin O'Gorman wrote:
> [...]
> You're not saying what version of Apache you are running, but you could look
> up the "ScriptLog" directive.  That will leave a larger log of what happens
> when your script is called.
> Don't leave this activated in normal times, because it is very heavy on the
> server (well, as long as the scripts are called of course).
>
> "Premature end of script headers" basically means "the script crashed".
> It could just mean - for instance - that the first line of the script (the
> "shebang" line) now points to some shell that no longer exists at that
> location.
> Could.
>
>
> ---------------------------------------------------------------------
> 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
>
>

Do you have sure the permissions at /tmp is as it should be?? Maybe
it's wrong and making your script crash(segmentation fault). Instead,
try to simply write to stdout.
You may also run the script at the shell to test it.

Simply try a bash script like this:
---
#!/bin/bash
echo -e "Content-type: text/plain\r\n"
echo "It's a cool test"
export
---

[]'s
Bruno Moreira Guedes

---------------------------------------------------------------------
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