I went for the second option.
I installed everything and my plug gives me a webpage now.
What's next?
--Oler
OK, you've got all that stuff installed.
Next open up /etc/lighttpd/lighttpd.conf and add in the server.modules section "mod_fastcgi"
Make sure .php is listed in static-file.exclude-extensions, then add a section like this at the end of the file -
fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 2,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "1",
"PHP_FCGI_MAX_REQUESTS" => "300"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
That one was tuned to extremely low resource use for a linksys NSLU2. It could probably be tidier.
OK, that's the webserver sorted. Now php. From the readme -
o Safe Mode must be turned off:
* php.ini: safe_mode = Off
o Allow Url fopen must be allowed:
* php.ini: allow_url_fopen = On
o open_basedir must be empty:
* php.ini: open_basedir = ''
I made these changes in both /etc/cli/php.ini and /etc/cgi/php.ini. In addition I have the lines
extension=pdo.so
extension=sqlite.so
in the "Dynamic Extensions section of cgi/php.ini, but I'm not sure if it's necessary. Right, so now we've got the system ready, restart lighttpd by running /etc/init.d/lighttpd restart, then grab this file -
http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2Dump the contents of the html directory from it into /var/www. On another machine go to http://<your sheevaplug_ip>/config.php, run through the four or five stage config wizard and you're there. This gets you a (fairly) lightweight but full featured web torrenting frontend. At the moment the only client it will have is the python based BitTornado. If you want to lower the system hit more you'll need transmission. Because it needs status information for the nice web interface, you'll need to build a custom version of transmission. Or I can mail you one that I've already built on my plug...
If you're still interested, and I haven't scared you off, let me know when you've got this far and whether you want a pre-built binary or help making your own. Instructions are included in the clients/transmission directory of the tar file you downloaded, but you'll need to install a C compiler and other such fun things.
If you're wondering where this ends up,
here's a screenshot of the mainpage (though mine actually looks much nicer, I think this is from a slightly older version)