Koozali.org: home of the SME Server

Virtual host cgi-bin bug

John Mackenzie

Virtual host cgi-bin bug
« on: December 26, 2003, 09:09:05 AM »
SME 5.5 had a virtual host cgi-bin bug whereby the primary domain cgi-bin worked, but virtual domain cgi-bins were not configured correctly and did not work.  This bug was fixed by an update and version 5.6 .

However, I have upgraded to SME 6.0 and this virtual host cgi-bin bug seems to be back ... My primary domain cgi-bin is working, but my virtual domain cgi-bin is not - the ibay has dynamic content (cgi, php, ssi) enabled and all permissions are liberally set.

Can anyone else reproduce this problem, or have I stuffed up somewhere ?

John Mackenzie

guestHH

Re: Virtual host cgi-bin bug
« Reply #1 on: December 26, 2003, 10:06:57 AM »
Hi John,

Anything in the logfiles? (messages, httpd logs)

guestHH

John Mackenzie

Re: Virtual host cgi-bin bug
« Reply #2 on: December 26, 2003, 12:20:39 PM »
> Anything in the logfiles? (messages, httpd logs)

Thanks for your suggestion.

From httpd/error_log
[Fri Dec 26 21:39:12 2003] [error] (8)Exec format error: exec of /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi failed
[Fri Dec 26 21:39:12 2003] [error] [client 192.168.2.100] Premature end of script headers: /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi

This and other logs don't seem to help.

I think I'll try installing some other cgi-bin scripts into the virtual domain cgi-bin and see if these run.

John Mac

tape

Re: Virtual host cgi-bin bug
« Reply #3 on: January 25, 2004, 05:53:40 PM »
Quote from: "John Mackenzie"
> Anything in the logfiles? (messages, httpd logs)

Thanks for your suggestion.

From httpd/error_log
[Fri Dec 26 21:39:12 2003] [error] (8)Exec format error: exec of /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi failed
[Fri Dec 26 21:39:12 2003] [error] [client 192.168.2.100] Premature end of script headers: /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi

This and other logs don't seem to help.

I think I'll try installing some other cgi-bin scripts into the virtual domain cgi-bin and see if these run.

John Mac


in most cases (if its an CGI) the files are broken (maybe ftp´ed as bin) or similar things. Add the "ScriptLog filename" to you Virtual Host directive, and you should get more information about the error.

hth
Anton

msoulier

Re: Virtual host cgi-bin bug
« Reply #4 on: January 26, 2004, 04:15:54 PM »
> From httpd/error_log
> [Fri Dec 26 21:39:12 2003] [error] (8)Exec format error: exec of
> /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi failed
> [Fri Dec 26 21:39:12 2003] [error] [client 192.168.2.100] Premature end of
> script headers:
> /home/e-smith/files/ibays/ohafc/cgi-bin/npublisher/config.cgi

This has nothing to do with the server, and everything to do with the contents
of this config.cgi. I assure you that Virtual Hosts, and their cgi-bin
directories, work fine on 6.0. I'm using them myself.

Mike