forked from nZEDb/nZEDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
executable file
·147 lines (119 loc) · 4.43 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
See docs folder or the git wiki for O/S specific guides.
REQUIREMENTS
PHP
php version 5.4 or higher
(ini file settings)
date.timezone Set to your local (http://ca3.php.net/manual/en/timezones.php)
memory limit at 1024 or more (memory_limit = 1024M)
minimum execution time of 120+ seconds (max_execution_time = 120)
sessions enabled (This should be enabled by default ; http://support.qualityunit.com/021373-How-To-Enable-Session-Support-for-PHP)
Make sure you update the php.ini for both web and cli (the date.timezone options are important)
(extensions)
Curl
Crypt
Ctype
Date
DBA
EXIF
Filter
GD
Hash
Iconv
JSON
MBString
OpenSSL
PEAR
PCRE
PDO
PDO MySQL
POSIX (On unix operating systems)
Session
SHA1
SimpleXML
Sockets
ZLib
(optional extensions)
Memcached (caching query results) (Memcached, not the memcache extension).
simple_php_yenc_decode (https://github.com/kevinlekiller/simple_php_yenc_decode) for decoding yEnc faster.
Database:
MySQL 5.5+
max_allowed_packet = 16M
group_concat_max_len = 8192
file permissions if not using root user (GRANT FILE ON *.* TO 'YourMySQLUsername'@'YourMySQLServerIPAddress';)
Note for some linux O/S's:
Apparmor must be disabled or configured to ignore MySQL.
Apache
script timeout of at least 60 seconds
mod_rewrite enabled
.htaccess allow override on
In apache 2.4 Directory AllowOverride must be true.
3rd Party API Keys (recommended to get your own api keys)
tmdb (signup @ http://api.themoviedb.org/2.1/)
amazon (signup @ https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html)
rottentomatoes (signup @ http://developer.rottentomatoes.com)
trakt.tv (https://trakt.tv/api-docs)
anidb (http://anidb.net)
Deep rar password inspection
unrar version 3.9 or higher
7zip
Misc applications
timeout (from gnu core-utils) For killing hanging processes.
file (from http://darwinsys.com/file/) For finding information on file data.
Thumbnailing and media info (if feep rar inspection is enabled)
ffmpeg or avconv
mediainfo
# For the threaded scripts you will require the Python cymysql module for mysql:
#For Ubuntu 13.10, python3 uses pip3, not pip3.2
# Python 2.*
sudo apt-get install python-setuptools python-pip
sudo python -m easy_install pip
sudo easy_install cymysql
sudo easy_install pynntp
sudo easy_install socketpool
pip list
# Python 3.* - If Python 3 is installed, the module also must be installed
sudo apt-get install python3-setuptools python3-pip
sudo python3 -m easy_install pip
sudo pip-3.2 install cymysql
sudo pip-3.2 install pynntp
sudo pip-3.2 install socketpool
pip-3.2 list
# -or-
sudo pip-3.3 install cymysql
pip-3.3 list
Memcache
sudo apt-get install memcached php5-memcache
sudo nano /etc/php5/apache2/php.ini -> add extension=memcache.so in the dynamic extensions section
sudo service apache2 restart
sudo nano /var/www/nZEDb/www/config.php -> change MEMCACHE_ENABLED to true
Tmux Scripts
sudo apt-get install tmux time
INSTALLATION
there is an installer in \install\ try it first by creating your website,
copying the application files there, and browsing to http://yournewznabserver/install.
refer to the list of requirements above if you encounter any errors during install, or the FAQ in the README
once installed activate only one or two groups to test with first (a.b.teevee is a good choice), this
will save you time if it is not working correctly.
run the update_binaries.php and update_releases.php scripts in \misc\update_scripts\ via command-line.
if updating was successful then you can continue to setup your site and configure the update scripts for
auto-updating.
RUNNING OUTSIDE OF WEB ROOT
set /.htaccess RewriteBase to your virtual directory
SAMPLE APACHE VHOST CONFIG
add this to your existing VHOST file modifying your values for ServerName, Server Alias, and DocumentRoot.
You should find this under /etc/apache2/sites-enabled/ (000-default).
Change directory/DocumentRoot to the www/ folder of nZEDb.
<VirtualHost *:80>
<Directory /domains/www/example.com/newz/www/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ServerAdmin admin@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /domains/www/example.com/newz/www
LogLevel warn
ServerSignature Off
</VirtualHost>