INSTALL 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. =================================================================
  2. $Id: INSTALL 3364 2008-03-22 14:48:39Z b4rt $
  3. =================================================================
  4. torrentflux-b4rt 1.0
  5. http://tf-b4rt.berlios.de
  6. -----------------------------------------------------------------
  7. System Requirements
  8. -----------------------------------------------------------------
  9. -- A Linux or FreeBSD Box installed and working properly.
  10. (tested on Debian, Ubuntu, Gentoo, RedHat, Fedora and others)
  11. -- Web Server.
  12. * Apache (http://www.apache.org)
  13. * LightTPD (http://www.lighttpd.net)
  14. -- SQL-Database. Supported are :
  15. * MySQL (http://www.mysql.com)
  16. * SQLite (http://www.sqlite.org)
  17. * PostgreSQL (http://www.postgresql.org)
  18. -- PHP Version 4.3.x or higher with Session and PCRE support
  19. enabled. Socket-Support is required for fluxd.
  20. (http://www.php.net)
  21. -- Python 2.2 or higher for BitTornado and Python 2.4 or
  22. higher for Mainline (BitTorrent).
  23. (http://www.python.org)
  24. -- Azureus 2.5.0.0 or higher with the XML/HTTP Plugin to use
  25. an Azureus-Server as Client within tfb (with fluazu).
  26. * Azureus (http://azureus.sourceforge.net)
  27. * XML/HTTP Plugin
  28. (http://azureus.sourceforge.net/plugin_details.php?plugin=xml_http_if)
  29. -- Perl 5.6 or higher for fluxd, nzbperl, ttools.pl and
  30. fluxpoller.pl (see Section "Perl-Modules" for Perl-Module-
  31. Requirements)
  32. (http://www.perl.org)
  33. -- Safe Mode must be turned off.
  34. (php.ini : safe_mode = Off)
  35. Allow Url fopen must be allowed.
  36. (php.ini : allow_url_fopen = On)
  37. -- SELinux should be turned off.
  38. -----------------------------------------------------------------
  39. Installation with "setup.php"
  40. -----------------------------------------------------------------
  41. 1. Untar the package into a directory then copy the contents of
  42. the "html" folder into your web site directory.
  43. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  44. 2. ensure the files + dirs in the docroot are readable by your
  45. webserver-user. if it is not the case one possible solution is
  46. to "chown" the files to your webserver-user. this may be done
  47. with a line like that :
  48. chown -R username /path/to/torrentflux-docroot
  49. change dir + username to fit your system so a possible line
  50. would be :
  51. chown -R www-data /var/www
  52. 3. ensure the dir "inc/config/" in your torrentflux-docroot is
  53. writable by your webserver-user.
  54. 4. open "setup.php" in a browser and complete it step by step.
  55. 5. IMPORTANT: The first time you access the application, you
  56. will be prompted for a user/password -- this is when you will
  57. set the SUPER ADMIN user and password by what you enter. For
  58. example, you pull the site up for the first time, you will
  59. be prompted to login and if you put in user: 'goombah' and
  60. password: 'iama' then your super admin user account will
  61. be set to goombah/iama.
  62. 6. On your first login you should check all the admin settings
  63. pages and configure your installation.
  64. -----------------------------------------------------------------
  65. Manual Installation
  66. -----------------------------------------------------------------
  67. 1. Untar the package into a directory then copy the contents of
  68. the "html" folder into your web site directory.
  69. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  70. 2. Create a database and import the sql-script.
  71. You may specify the type of the database you want to use in
  72. the file "config.db.php", but the examples here use MySQL.
  73. mysqladmin create torrentflux
  74. "mysql_torrentflux-b4rt-1.0.sql" contains the commands to
  75. build the table structure and the default data. Import the
  76. script into your torrentflux database.
  77. mysql torrentflux < mysql_torrentflux-b4rt-1.0.sql
  78. Or load the script with PHPMyAdmin (web interface)
  79. 3. rename the file "config.db.php.dist" in the dir "inc/config/"
  80. to "config.db.php" and set the database-settings to use your
  81. torrentflux-database.
  82. You may specify type of database you want to use, but
  83. the examples here use MySQL.
  84. 4. ensure the files + dirs in the docroot are readable by your
  85. webserver-user. if it is not the case one possible solution is
  86. to "chown" the files to your webserver-user. this may be done
  87. with a line like that :
  88. chown -R username /path/to/torrentflux-docroot
  89. change dir + username to fit your system so a possible line
  90. would be :
  91. chown -R www-data /var/www
  92. 5. Remove or rename the file /path/to/torrentflux-docroot/setup.php.
  93. This is a security precaution to ensure a malicious user does not
  94. attempt to overwrite your torrentflux-b4rt installation. Your
  95. installation will not run with setup.php in the document root folder.
  96. 6. IMPORTANT: The first time you access the application, you
  97. will be prompted for a user/password -- this is when you will
  98. set the SUPER ADMIN user and password by what you enter. For
  99. example, you pull the site up for the first time, you will
  100. be prompted to login and if you put in user: 'goombah' and
  101. password: 'iama' then your super admin user account will
  102. be set to goombah/iama.
  103. 7. On your first login you should check all the admin settings
  104. pages and configure your installation.
  105. -----------------------------------------------------------------
  106. Upgrade from TorrentFlux 2.1-b4rt-9x with "upgrade.php"
  107. -----------------------------------------------------------------
  108. 1. If QueueManager is running dequeue all torrents and stop it.
  109. 2. Stop all transfers and delete them. (data-delete/reset/wipe is
  110. not needed, delete is enough)
  111. 3. Delete content of docroot of the v9x-installation. (recursive)
  112. 4. Untar the package into a directory then copy the contents of
  113. the "html" folder into your web site directory.
  114. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  115. 5. ensure the files + dirs in the docroot are readable by your
  116. webserver-user. if it is not the case one possible solution is
  117. to "chown" the files to your webserver-user. this may be done
  118. with a line like that :
  119. chown -R username /path/to/torrentflux-docroot
  120. change dir + username to fit your system so a possible line
  121. would be :
  122. chown -R www-data /var/www
  123. 6. ensure the dir "inc/config/" in your torrentflux-docroot is
  124. writable by your webserver-user.
  125. 7. copy the file "upgrade.php" from the dir "upgrade/v9x_1.0/" to
  126. your torrentflux-docroot. choose the appropriate version.
  127. 8. open the just copied file "upgrade.php" in a browser and
  128. complete it step by step.
  129. 9. Remove or rename the file /path/to/torrentflux-docroot/setup.php.
  130. This is a security precaution to ensure a malicious user does not
  131. attempt to overwrite your torrentflux-b4rt installation. Your
  132. installation will not run with setup.php in the document root folder.
  133. 10. On your first login after the upgrade you should check all the
  134. admin settings pages and configure your installation.
  135. -----------------------------------------------------------------
  136. Manual Upgrade from TorrentFlux 2.1-b4rt-98
  137. -----------------------------------------------------------------
  138. 1. If QueueManager is running dequeue all torrents and stop it.
  139. 2. Stop all transfers and delete them. (data-delete/reset/wipe is
  140. not needed, delete is enough)
  141. 3. Delete content of docroot of the v98-installation. (recursive)
  142. 4. Untar the package into a directory then copy the contents of
  143. the "html" folder into your web site directory.
  144. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  145. 5. Import the Update-sql-script.
  146. You may specify the type of the database you want to use in
  147. the file "config.db.php", but the examples here use MySQL.
  148. "mysql_update_tf-b4rt-98.to.torrentflux-b4rt-1.0.sql"
  149. contains the commands to update the table structure and the
  150. default data.
  151. Import the script into your torrentflux database.
  152. mysql torrentflux < mysql_update_tf-b4rt-98.to.torrentflux-b4rt-1.0.sql
  153. Or load the script with PHPMyAdmin (web interface)
  154. 6. rename the file "config.db.php.dist" in the dir "inc/config/"
  155. to "config.db.php" and set the database-settings to use your
  156. torrentflux-database.
  157. You may specify type of database you want to use, but
  158. the examples here use MySQL.
  159. 7. ensure the files + dirs in the docroot are readable by your
  160. webserver-user. if it is not the case one possible solution is
  161. to "chown" the files to your webserver-user. this may be done
  162. with a line like that :
  163. chown -R username /path/to/torrentflux-docroot
  164. change dir + username to fit your system so a possible line
  165. would be :
  166. chown -R www-data /var/www
  167. 8. rename the dir ".torrents" in your path to ".transfers".
  168. on a default install this would be :
  169. /usr/local/torrent/.torrents/
  170. ->
  171. /usr/local/torrent/.transfers/
  172. 9. Remove or rename the file /path/to/torrentflux-docroot/setup.php.
  173. This is a security precaution to ensure a malicious user does not
  174. attempt to overwrite your torrentflux-b4rt installation. Your
  175. installation will not run with setup.php in the document root folder.
  176. 10. On your first login after the upgrade you should check all the
  177. admin settings pages and configure your installation.
  178. -----------------------------------------------------------------
  179. Upgrade from official TorrentFlux 2.1/2.2/2.3 with "upgrade.php"
  180. -----------------------------------------------------------------
  181. 1. If QueueManager is running dequeue all torrents and stop it.
  182. 2. Stop all transfers.
  183. 3. Delete content of docroot of the 2.1/2.2/2.3 installation.
  184. (recursive)
  185. 4. Untar the package into a directory then copy the contents of
  186. the "html" folder into your web site directory.
  187. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  188. 5. ensure the files + dirs in the docroot are readable by your
  189. webserver-user. if it is not the case one possible solution is
  190. to "chown" the files to your webserver-user. this may be done
  191. with a line like that :
  192. chown -R username /path/to/torrentflux-docroot
  193. change dir + username to fit your system so a possible line
  194. would be :
  195. chown -R www-data /var/www
  196. 6. ensure the dir "inc/config/" in your torrentflux-docroot is
  197. writable by your webserver-user.
  198. 7. copy the file "upgrade.php" from the dir "upgrade/TF21_1.0/" or
  199. "upgrade/TF22_1.0/" or "upgrade/TF23_1.0/" to your docroot.
  200. (choose the version of your current installation)
  201. 8. open the just copied file "upgrade.php" in a browser and
  202. complete it step by step.
  203. 9. Remove or rename the file /path/to/torrentflux-docroot/setup.php.
  204. This is a security precaution to ensure a malicious user does not
  205. attempt to overwrite your torrentflux-b4rt installation. Your
  206. installation will not run with setup.php in the document root folder.
  207. 10. On your first login after the upgrade you should check all the
  208. admin settings pages and configure your installation.
  209. -----------------------------------------------------------------
  210. Manual Upgrade from official TorrentFlux 2.1/2.2/2.3
  211. -----------------------------------------------------------------
  212. 1. If QueueManager is running dequeue all torrents and stop it.
  213. 2. Stop all transfers.
  214. 3. Delete content of docroot of the 2.1/2.2/2.3 installation.
  215. (recursive)
  216. 4. Untar the package into a directory then copy the contents of
  217. the "html" folder into your web site directory.
  218. tar -jxvf torrentflux-b4rt_1.0.tar.bz2
  219. 5. Import the Update-sql-script.
  220. You may specify the type of the database you want to use in
  221. the file "config.db.php", but the examples here use MySQL for
  222. update from TorrentFlux 2.3.
  223. "mysql_update_torrentflux23.to.torrentflux-b4rt-1.0.sql"
  224. contains the commands to update the table structure and the
  225. default data.
  226. Import the script into your torrentflux database.
  227. mysql torrentflux < mysql_update_torrentflux23.to.torrentflux-b4rt-1.0.sql
  228. Or load the script with PHPMyAdmin (web interface)
  229. 6. rename the file "config.db.php.dist" in the dir "inc/config/"
  230. to "config.db.php" and set the database-settings to use your
  231. torrentflux-database.
  232. You may specify type of database you want to use, but
  233. the examples here use MySQL.
  234. 7. ensure the files + dirs in the docroot are readable by your
  235. webserver-user. if it is not the case one possible solution is
  236. to "chown" the files to your webserver-user. this may be done
  237. with a line like that :
  238. chown -R username /path/to/torrentflux-docroot
  239. change dir + username to fit your system so a possible line
  240. would be :
  241. chown -R www-data /var/www
  242. 8. rename the dir ".torrents" in your path to ".transfers".
  243. on a default install this would be :
  244. /usr/local/torrent/.torrents/
  245. ->
  246. /usr/local/torrent/.transfers/
  247. 9. rename stat-files and prio-files.
  248. Note: it is also possible to just delete all transfers before upgrading and
  249. then re-inject after upgrade. (then this point can be skipped)
  250. change to your path-dir. (the dir just renamed in 8.) on a
  251. default install this would be :
  252. cd /usr/local/torrent/.transfers/
  253. execute this commands (requires perl) in that dir :
  254. ls -1 *.torrent | perl -e 'while(<STDIN>){chomp;$o=lc(((substr($_,0,(length($_))-7))))."stat";$n=$_.".stat";print $o."->".$n;print `mv $o $n;echo`;}'
  255. ls -1 *.prio | perl -e 'while(<STDIN>){chomp;$o=$_;$n=((substr($_,0,(length($_))-4)))."torrent.prio";print $o."->".$n;print `mv $o $n;echo`;}'
  256. 10. Remove or rename the file /path/to/torrentflux-docroot/setup.php.
  257. This is a security precaution to ensure a malicious user does not
  258. attempt to overwrite your torrentflux-b4rt installation. Your
  259. installation will not run with setup.php in the document root folder.
  260. 11. On your first login after the upgrade you should check all the
  261. admin settings pages and configure your installation.
  262. -----------------------------------------------------------------
  263. Additional / Optional
  264. -----------------------------------------------------------------
  265. -- PyCrypto (Python Cryptography Toolkit) is needed to run
  266. BitTornado with encryption. (avail. since BitTornado 0.3.18)
  267. PyCrypto is also required for Mainline (BitTorrent) Client.
  268. PyCrypto can be found at :
  269. http://www.amk.ca/python/code/crypto
  270. -- Twisted is needed to run Mainline (BitTorrent) Client.
  271. It can be found at :
  272. http://twistedmatrix.com
  273. Twisted requires at least Zope Interface 3.0.1 or higher. It
  274. can also work with ZopeX3 version 3.0.0c1 or higher.
  275. Zope Interface is included in Twisted-source-tarball or can be
  276. found at :
  277. http://www.zope.org/Products/ZopeInterface
  278. -- UUDeview is needed for nzbperl.pl. UUDeview can be found at :
  279. http://fpx.de/fp/Software/UUDeview/
  280. -- unrar (for Linux) and rarbsd (for FreeBSD) can be found at :
  281. http://www.rarlab.com/rar/
  282. -- cksfv (needed for SFV check) can be found at :
  283. http://zakalwe.virtuaalipalvelin.net/~shd/foss/cksfv/files/devel/
  284. -- vlc (needed for Streaming Feature) can be found at :
  285. http://www.videolan.org/
  286. -- To compile Transmission on Mac OS X you need the Developer
  287. Tools from Apple.
  288. -- To use wget on Mac OS X install :
  289. http://www.statusq.org/images/wget.zip
  290. -----------------------------------------------------------------
  291. Perl-Modules
  292. -----------------------------------------------------------------
  293. -- fluxd.pl (part of fluxd)
  294. * IO::Select (perl -MCPAN -e "install IO::Select")
  295. * IO::Socket::UNIX (perl -MCPAN -e "install IO::Socket::UNIX")
  296. * IO::Socket::INET (perl -MCPAN -e "install IO::Socket::INET")
  297. * POSIX (perl -MCPAN -e "install POSIX")
  298. -- FluxDB.pm (part of fluxd) (only in dbi-mode)
  299. * all database-types :
  300. DBI (perl -MCPAN -e "install Bundle::DBI")
  301. * MySQL :
  302. DBD::mysql (perl -MCPAN -e "install DBD::mysql")
  303. * SQLite :
  304. DBD::SQLite (perl -MCPAN -e "install DBD::SQLite")
  305. * PostgreSQL :
  306. DBD::Pg (perl -MCPAN -e "install DBD::Pg")
  307. -- Fluxinet.pm (part of fluxd)
  308. * IO::Select (perl -MCPAN -e "install IO::Select")
  309. * IO::Socket::INET (perl -MCPAN -e "install IO::Socket::INET")
  310. -- tfnzbperl.pl (usenet transfer-client)
  311. Required :
  312. * IO::File
  313. * IO::Select
  314. * IO::Socket::INET
  315. * File::Basename
  316. * Getopt::Long
  317. * Cwd
  318. * XML::Simple
  319. * XML::DOM
  320. Optional :
  321. * threads
  322. * Thread::Queue
  323. -- ttools.pl (metainfoclient)
  324. * Digest::SHA1 (perl -MCPAN -e "install Digest::SHA1")
  325. * LWP::UserAgent (perl -MCPAN -e "install LWP::UserAgent")
  326. -----------------------------------------------------------------
  327. Known Issues
  328. -----------------------------------------------------------------
  329. Please check at: http://tf-b4rt.berlios.de