After installing and setting up Ikiwiki on my Debian server. I somehow got the following error when trying to edit index page in browser / online:
Not Found
The requested URL /foobar.com/static/ikiwiki.cgi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
My foobar.setup
has the following for CGI configuration
cgiurl => 'http:/foobar.com/static/ikiwiki.cgi',
cgi_wrapper => '/home/foobaruser/foobar.com/static/ikiwiki.cgi',
What could be wrong?
Well, your cgiurl is an invalid url (valid urls start with "http://" , not "http:/")
Perhaps you also have a misconfigured web server. You don't say if
/home/foobaruser/foobar.com/
is configured to be served up for foobar.com. Or perhaps you need to follow the instructions in dot cgi.Or, perhaps
/home/foobaruser/foobar.com/static/ikiwiki.cgi
does not exist; did you run ikiwiki -setup?Here is a simple CGI script:
Here is a simple Perl CGI script:
After testing using a test CGI script (thanks to smcv), I confirmed this is not a problem of the server not being set up to serve CGI. I then tried changing the permissions of
ikiwiki.cgi
and found:on the remote server, if I have
-rwsr-sr-x
forikiwiki.cgi
, the CGI features such asPreference
andEdit
buttons don't work, but if I set it-rwsr-xr-x
, it works. The server is a Debian VPS.in contrast, on my local LAMP server
localhost
, both permissions workAny ideas?
Thanks!
cgi_wrappermode => '06755'
in mywiki.setup