PDA

View Full Version : hayes beta 2.1



agd108
07-21-2007, 09:30 PM
I tried a fresh install of hayes beta 2.1 on ubuntu 7.04.

Successfuly got through everything except for for following errors when starting dekihost:


root@krishnapedia:/var/www# /etc/init.d/dekihost restart
/var/www/krishnapedia/bin/mindtouch.host.sh: 19: function: not found
stop: missing job name
Try `stop --help' for more information.
Starting MindTouch Deki API: mono /var/www/krishnapedia/bin/mindtouch.host.exe apikey ycrNilNDpsZ70cZ9CfhdKYtGdrTVhMYt script /etc/dekiwiki/mindtouch.deki.startup.xml server-name http://krishnapedia.homeip.net path-prefix @api http-port 8081 ip localhost notty
/var/www/krishnapedia/bin/mindtouch.host.sh: 24: Syntax error: "}" unexpected


However the process does start as I check it with ps as suggested in the instructions.

I can access the wiki great except at the top of each page there is this 403 error message:

Request URI: http://krishnapedia.homeip.net/@api/deki/pages/5/security?dream.out.format=php&dream.in.host=krishnapedia.homeip.net
Server response<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /@api/deki/pages/5/security
on this server.</p>
<hr>
<address>Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at krishnapedia.homeip.net Port 80</address>
</body></html>


I ran this test: http://krishnapedia.homeip.net/@api/host/test
and get this result:

Forbidden

You don't have permission to access /@api/host/test on this server.
Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at krishnapedia.homeip.net Port 80

I am not sure where to change permissions for this one. I actually do not understand the technology being used which is rewriting requests. I was just trying to install it.

Thanks,
AGD

merktnichts
07-22-2007, 05:42 AM
Try to set
ln -sf /bin/bash /bin/sh before you start (being root or using sudo or su). That should get rid of this part:

/var/www/krishnapedia/bin/mindtouch.host.sh: 24: Syntax error: "}" unexpected

On Ubuntu Feisty (7.04) they moved to Dash instead of Bash, which was used in Ubuntu before and is default on Debian. As DekiWiki seems to be mainly tested against a plain Debian, the deki-devs very likely use Bash instead of Dash. I ran into that "problem" several times already, not only with Deki.

If that doesn't really solve the access problem (but solves the syntax error), go through the readme step by step religiously. Do all steps being root or using sudo or su. Don't forget to set the chown's etc as described in the readme. It works for sure, I already did several installs (incl. on Ubuntu Feisty) during the last weeks.

Enjoy!

tobias
07-22-2007, 01:56 PM
I am running beta 2.1 on ubuntu 7.04 and have no problems. You should definitely go back here http://doc.opengarden.org/DekiWiki/Release/Hayes_Beta_2.1 and follow the guideline step by step!