]> sipb.mit.edu Git - ikiwiki.git/commitdiff
why the wrapper is a binary
authorhttp://jmtd.livejournal.com/ <http://jmtd.livejournal.com/@web>
Thu, 15 Oct 2009 16:41:02 +0000 (12:41 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 15 Oct 2009 16:41:02 +0000 (12:41 -0400)
doc/forum/Ikiwiki_CGI_not_working_on_my_server__44___and_it__39__s_a_binary_file__63__.mdwn

index a3cb0ae0b8bbc5add48feb0e28313f6e98a4f899..dc274c5b202e33cca81f5b06284a4304e8269e95 100644 (file)
@@ -3,3 +3,10 @@ Hey, trying to get ikiwiki working on my account on a shared webserver. Actually
 My first thought was that this is a Perl CGI and I would need to change the shebang to point to the unusual location of Perl on this server, it's at /usr/pkg/bin/perl. But when I looked at ikiwiki.cgi I found it was a binary file.
 
 Why is it a binary? And what can I do about this error?
+
+> It's a binary because it's SUID, so that it has permission to write to the ikiwiki repository. See [[security]], under 'suid wrappers', for more on that.
+> 
+> As to why you get 'premature end of script headers', that suggests there is a problem running
+> the script (and there is output occurring before the HTTP headers are printed). Do you have access
+> to the webserver logs for your host? They might contain some clues. Are you sure that the webserver
+> is setup for CGI properly? -- [[Jon]]