Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: John Mackenzie 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
-
Hi John,
Anything in the logfiles? (messages, httpd logs)
guestHH
-
> 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
-
> 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
-
> 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