Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: Lee on November 20, 2012, 10:51:06 PM
-
I've been using cherokee web server for some very simple web page serving and I've decided I want to expand the capabilities a little and use some CGI. Until now I had not used the cherokee-admin tool, just edited the cherokee.conf file by hand for the tiny changes I was making. I've been unable to get CGI working that way so I tried to run the admin tool... and it doesn't start.
I found this thread: http://forum.tinycorelinux.net/index.php/topic,8683.msg46950.html#msg46950 with posts by vinnie and combo3 but the steps there didn't get it working for me.
Here is what I get when I try to run it:
tc@timpc:~$ which cherokee-admin
/usr/local/sbin/cherokee-admin
tc@timpc:~$ sudo /usr/local/sbin/cherokee-admin
env: can't execute 'python': No such file or directory
ERROR: Couldn't find python.
tc@timpc:~$ tce-load -i python
/usr/bin/tce-load: line 294: desktop.sh: not found
bzip2-lib.tcz: OK
/usr/bin/tce-load: line 294: desktop.sh: not found
sqlite3.tcz: OK
/usr/bin/tce-load: line 294: desktop.sh: not found
python.tcz: OK
tc@timpc:~$ sudo /usr/local/sbin/cherokee-admin
[20/11/2012 22:35:58.203] (error) source_interpreter.c:479 - Could not find
interpreter '/usr/local/share/cherokee/admin/server.py 4000
/usr/local/etc/cherokee/cherokee.conf' | The server configuration refers to
an interpreter that is not installed in this system.
main_admin.c:425 - Could not initialize the server
tc@timpc:~$
This is on a reasonably fresh install of Core 4.7.
Any ideas?
-
Hi Lee
Have you seen this thread:
http://forum.tinycorelinux.net/index.php/topic,13497.msg74785.html#msg74785
-
I found this thread: http://forum.tinycorelinux.net/index.php/topic,8683.msg46950.html#msg46950 with posts by vinnie and combo3 but the steps there didn't get it working for me.
According to the change log, there have been two updates to cherokee since that thread. Presumably there were some files left out necessary for the admin interface to run. The thread Rich linked to seems to have reached the same conclusion, though no one fixed it...
-
Thanks Rich. I had not seen that other thread.
And thank you, Althalus - it looks like you are right about omitted files. I'll probably play with it a bit over the long weekend and see if I can pull in the missing files - maybe figure out what needs to be added to the extension.
Its particularly frustrating because what I really want is to just edit the config file! But there's no documentation beyond "oh, just run cherokee-admin - you should never edit the config file".
-
Its particularly frustrating because what I really want is to just edit the config file! But there's no documentation beyond "oh, just run cherokee-admin - you should never edit the config file".
Yeah, I stopped using cherokee and switched to nginx at about the point where cherokee started generating a config file that was all but impossible to edit by hand. It was just too much of a hassle to keep persisting with it.