Forum

wiki webserver error 500

antonio66
23 March 2013, 11:21
Hiawatha version: 8.1
Operating System: puppylinux 4.12

Hiawatha version: 8.1
Operating System: puppy linux 4.12; perl 5.8.8

Dear,

I'm using your great piece of software on a thinclient, serving my blog and guestbook system, both written in perl.
Now I'm trying to setup a small wiki (written in perl only) taken from http://c2.com/cgi/wiki?WikiEngines , like usemod.

hiawatha-config is configured to run webserver from /root/httpd/hiawatha/wikidb , cgi-handler=/usr/bin/perl:pl,cgi cgiextension=pl,cgi executecgi=yes ...

These settings are working for blog and guestbook system. So I setup directory and the wiki.pl file to root:noboby, chmod 755, but got server-error like:
192.xxx.xxx.xx|Fri 22 Mar 2013 19:05:11 +0800|/root/httpd/hiawatha/wikidb/wiki.pl|execute CGI: No such file or directory
192.xxx.xxx.xx|Fri 22 Mar 2013 19:05:11 +0800|/root/httpd/hiawatha/wikidb/wiki.pl|no output

# perl wiki.pl sent right html-output on command line


I tried to change owner and set 777, but nothing helps... What I'm doing wrong? Please help. Thx

antonio
Hugo Leisink
23 March 2013, 12:50
First, don't use the same extensions for CGIhandler and CGIextension. An extension should be handled by a parser (CGIhandler) or by executing it directly (CGIextension). It can't be handled in both ways. The wigwam tool should have warned you about it. Do you run it before running Hiawatha?

I have no idea why Hiawatha can't find the wiki.pl file. Are you sure it's present at the location as shown in the error? Does the user Hiawatha runs as has access to that file and the directories it's in?
antonio66
23 March 2013, 14:17
Hi,
I tried both entries today. Normally I use your sample config - there are "no non-fatal errors in the config" (wigwam)

yes, file is under directory above. mentioned. server-Id = nobody:nobody.
User is nobody (seems to be standard from puppylinux) and he owns by "group" the directory wikidb and cgi-files.

I tried this with 775, too, but no chance to see something:
-rwxrwxr-x 1 nobody nobody 1701 2013-03-23 11:40 changes.cgi
-rwxrwxr-x 1 nobody nobody 1606 2013-03-23 11:40 edit.cgi
-rwxrwxr-x 1 nobody nobody 1628 2013-03-23 11:40 refcount.cgi
-rwxrwxr-x 1 nobody nobody 2209 2013-03-23 11:40 save.cgi
-rwxrwxr-x 1 nobody nobody 1608 2013-03-23 11:40 search.cgi
-rwxrwxr-x 1 nobody nobody 4619 2013-03-23 11:40 wiki.cgi
#


Output by running cgi from command-line is there (can't paste it here due spam-alarm).

Hugo Leisink
23 March 2013, 18:05
What happens if you change user id to nobody and then try to run the cgi scripts via the command line?
René
24 March 2013, 21:28
Do you have php5-cgi installed?
antonio66
25 March 2013, 12:10
Now it works. No, no php5 installed...

I suppose it was a misconfiguration in CGIhandler and CGIextension. I don't know how the other perl scripts did work, but ...
Thx
This topic has been closed.