Other Help Topics :: monkey + php = no work
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?
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
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.
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.
thanks, doing all of those things (including using php correctly instead of the wrong way I was using it) worked.
Next Page...
original here.