Updating Monkey


Forum: Networking
Topic: Updating Monkey
started by: libretto

Posted by libretto on Jan. 20 2005,13:15
Hi there,

I'm looking to update httpdMonkey to the latest version.

Am I correct in thinking that the source from the Monkey homepage has to be compiled ??? Also, with the present monkey install theres a directory re-routing in place (monkey -> monkey-0.8.2), how would I change this to point to the newer monkey directory ???

Cheers.

Posted by clacker on Jan. 20 2005,16:22
libretto,

You need to be careful with the monkey web server because:

System->Daemons->Monkey Web Server->monkey stop

Did not shut down monkey in version 0.9.2 of dsl
.  So be careful if you think it's shut off but it's still on.  This isn't because of anything I did, I believe it's a flaw in the base dsl since it happens from a clean boot too.  You can see this by running

System->Daemons->Monkey Web Server->monkey start
System->Daemons->Monkey Web Server->monkey stop
ps -ax | grep monkey

Maybe they'll update DSL to the 0.9.0 monkey when they fix that.

I got the source from monkey to compile with the gcc1.dsl file.  That was easy: untar it, cd to the directory created, type ./configure and the type make
.  There were all kind of permissions that were different between /opt/monky-0.8.0 and the monkey-0.9.0 directories, I tried to catch them all but I think I may have missed some because although the executable ran,  I had no web service.

the link is created with the command

ln -s /opt/monkey-0.9.0 monkey

EDIT: made the error clearer in dsl 0.9.2

Posted by clacker on Jan. 20 2005,21:43
libretto, it's possible.  Here's what I did:

Code Sample
tar -xzvf monkey-0.9.0.tar.gz
cp -rp  monkey-0.9.0 /opt
cd /opt/monkey-0.9.0/
./configure
make
chmod 777 ../monkey-0.9.0
chmod 775 bin
chmod 775 cgi-bin
chmod 775 conf
chmod 775 htdocs
chmod 775 lang
chmod 775 logs
chmod 775 src
chmod 775 bin/banana
chmod 664 conf/modules.conf
chmod 664 conf/monkey.*
chmod 664 htdocs/index.html
cd /opt
rm monkey
ln -s monkey-0.9.0 monkey
beaver /monkey/conf/monkey.conf

  change the port line from Port 2001 to Port 80
  change the PidFile to /tmp/monkey.pid

then load you favorite browser and go to 127.0.0.1

If you leave the port 2001, you can still use it, but you need to connect to that port instead of the default port 80.

EDIT: retroactivly changed my post to correct the mistake found by libretto

Posted by libretto on Jan. 21 2005,08:46
Thanks for the info Clacker! :D

I'll get round to updating monkey in the next few days.

[EDIT]Followed your guide to the letter, well almost, you'd put the symlink back to 0.8.2! :D no problem to change that! Again thanks for your help! :cool: [/EDIT]

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.