Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: monkey + php = no work, dsl 1.2.1< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: June 16 2005,01:08 QUOTE

I think there is a problem with the latest version of DSL (1.2.1) and the way it interacts with PHP and monkey.  I did the following from an unmodified liveCD:

chose system->daemons->monkey web server->monkey start from the menus
in dillo went to 127.0.0.1 (worked)

chose system->daemons->monkey web server->monkey stop from the menus
in dillo went to 127.0.0.1 (failed, as it should)

chose system->daemons->monkey web server->monkey start from the menus
in dillo went to 127.0.0.1 (worked)

chose system->daemons->monkey web server->monkey stop from the menus
in dillo went to 127.0.0.1 (failed, as it should)

loaded the php.tar.gz extension

chose system->daemons->monkey web server->monkey start from the menus
in dillo went to 127.0.0.1 (failed) <<-- my problem

I checked with ps -ax and monkey was not running.  I tried the comand line:

sudo /opt/monkey/bin/banana start

but that also failed to load the monkey.

Why does monkey fail to start after loading the PHP extension?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 16 2005,02:20 QUOTE

Looks to me like php.tar.gz needs to be repacked with the monkey.conf file edited.

For now simply edit /opt/monkey/conf/monkey.conf

Search for 0.8.2 and replace with 0.9.1 or better just remove the 0.8.2 thereby using the link monkey
Back to top
Profile PM WEB 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: June 16 2005,13:09 QUOTE

roberts, thanks.  I removed all of the -0.8.2 from my monkey.conf file and it helped.  Then I noticed two more things.  Once started with php, monkey again refuses to stop.  Without php installed it works fine.

My second problem was testing to see that php worked.   I made a file called test.php which contained the line:

<? phpinfo(); >

When I tried to view this file (http://127.0.0.1/test.php in Dillo), I got a parse error regarding the final > symbol.  Any ideas on that?

Thanks for all the fine work.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 16 2005,13:35 QUOTE

Quote
<? phpinfo(); >


Should be <? phpinfo(); ?>   This works.

As far as stopping Monkey, again looks like 0.9.1 changed some things so back to edit /opt/monkey/conf/monkey.conf and edit the liine PidFile /tmp/monkey.pid and change it to

PidFile /opt/monkey/logs/monkey.pid

Now Monkey will stop correctly.

These need to be updated in the php.tar.gz extension and don't have to change the base iso.
Back to top
Profile PM WEB 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: June 16 2005,19:23 QUOTE

thanks, doing all of those things (including using php correctly instead of the wrong way I was using it) worked.
Back to top
Profile PM 
5 replies since June 16 2005,01:08 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: monkey + php = no work

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code