What you need:
My book world Edition with ssh enabled (see martin)
A terminal
1) Login and gain su privileges.
2) Download m4 1.4.10 from http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz (wget http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz)
a. tar –xvfz m4-1.4.10.tar.gz (all the flags may not be necessary but they work with these flags)
b. cd m4-1.4.10
c. ./configure
d. make
e. make install
3) Download autoconf 2.61 from ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz (wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz)
a. tar –xvfz autoconf-2.62.tar.gz
b. cd autoconf-2.62
c. ./configure
d. make
e. make install
4) Download automake 1.9.1 from http://ftp.gnu.org/gnu/automake/automake-1.9.1.tar.gz NOTE: THIS IS NOT THE NEWEST VERSION BUT THE ONE YOU NEED!!!
a. tar –xvfz automake-1.9.1
b. cd automake-1.9.1
c. ./configure
d. make
e. make install
5) Install libxml
a. cd /opt
b. wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.27.tar.gz
c. tar xfz libxml2-2.6.27.tar.gz
d. mv libxml2-2.6.27.tar.gz src
e. cd libxml2-2.6.27
f. ./configure
g. make
h. make install
i. cp /usr/local/lib/libxml2.so.2 /lib
6) Build PHP
a. cd /opt
b. wget -O php-5.2.3.tar.gz http://www.php.net/get/php-5.2.3.tar.gz/from/us.php.net/mirror
c. tar xvfz php-5.2.3.tar.gz
d. mv php-5.2.3.tar.gz src
e. cd php-5.2.3
f. ./configure –without-iconv –without-pear –enable-fastcgi –enable-discard-path –enable-force-cgi-redirect –with-mysqli=/usr/bin/mysql_config –with-mysql
g. make
h. make install
7) Set Up Lighttpd to use PHP
a. cd /etc/lighttpd
b. cp lighttpd.conf lighttpd.conf.backup
c. edit lighttpd.conf to replace this:
“nasMaster.pl” => (( “socket” => “/tmp/lighttpd.fcgi.socket”,
“check-local” => “disable”,
))
)
with this:
“nasMaster.pl” => (( “socket” => “/tmp/lighttpd.fcgi.socket”,
“check-local” => “disable”,
)),
“.php” => (( “bin-path” => “/usr/local/bin/php-cgi”,
“socket” => “/tmp/php.socket”,
))
)
You might also want to change the line that reads:
index-file.names = ( "nasMaster.pl" )
to read
index-file.names = ( "nasMaster.pl", "index.html", "index.php" )
ALSO: you need to enable shell commands from the http server!!
Add line:
Var.a=1
(I just put it in the first line)
8) After you make these changes, you need to restart lighthttpd:
a. /etc/init.d/lighthttpd.sh restart
9) Enable lighttpd server to serve pages in your PUBLIC dir
a. # ln -s /shares/internal/PUBLIC /usr/www/lib/
b. # reboot
10) NOW YOU ARE READY TO INSTALL w3btorrent!
11) Cd /shares/internal/PUBLIC/
12) Mkdir w3btorrent
13) Chmod 777 w3btorrent
14) Cd w3btorrent
15) Wget http://w3btorrent.thewulong.com/install.php
16) Now visit http://<IP-OF-YOUR-MYBOOK>/PUBLIC/w3btorrent/install.php
17) When it the install says you don’t have the binaries click configure then compile.
NOTE: I have found that the files sizes of the downloads are incorrect after you start the torrent (new release supposted to be coming in a week to fix this). I have contacted the author of w3btorrent and he thinks this is a bug in his code. This does not affect the download just the ability for you to see when it will complete. Until this is resolved you can click on the torrent name and view the pieces downloaded compared to pieces in torrent to see how far close you are to being done.
NOTE: I am pretty noob at *nix so I am sure you could get away with not having all the flags on the tar commands or the 777 for the w3btorrent folder but I knew they would work
I hope these instructions help. Most of them are available either by martin, or others to get the box setup to run PHP the trick is adding the shell commands to be run by PHP before you start installing w3btorrent.
Also if I have left out any steps please let me know. It took quite some time to get it up and running the first time so I backtracked a couple of times but I think this is the most direct way.