forked from nZEDb/nZEDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
executable file
·147 lines (123 loc) · 4.79 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
REQUIREMENTS
PHP
php version 5.4 or higher
sessions enabled
memory limit at 1024 or more
minimum execution time of 120+ seconds
make sure you update the php.ini for both web and cli
OpenSSL (if connecting to ssl usenet provider)
php register_globals off
exif support (check the ini file).
GD Imaging Library w/PHP integration
PEAR
Database:
MySQL
max_allowed_packet=12582912
group_concat_max_len=8192
timezone set to php's
OR
PostgreSQL(this is not currently supported)
To determine the IP / port ; on linux as root, run:
netstat -plunt |grep postgres
To set it up ; on linux as root, run:
sudo apt-get install php5-pgsql postgresql
sudo -i -u postgres
psql
CREATE USER EnterYourUserNameHere;
CREATE DATABASE nzedb OWNER EnterYourUserNameHere;
(the single quotes for the password are needed)
ALTER USER EnterYourUserNameHere WITH ENCRYPTED PASSWORD 'EnterYourPasswordHere';
Apache
script timeout of at least 60 seconds
mod_rewrite enabled
.htaccess allow override on
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)
Deep rar password inspection
unrar version 3.9 or higher
Thumbnailing and media info (if feep rar inspection is enabled)
ffmpeg
mediainfo
# For the threaded scripts you will require the Python cymysql module for mysql:
# 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
#For Ubuntu 13.10, python3 uses pip3, not pip3.2
# Or the Python psycopg module for PostgreSQL
sudo apt-get install postgresql postgresql-server-dev-all php5-pgsql python-dev python3-dev make
# Python 2.*
sudo apt-get install python-setuptools python-pip
sudo easy_install psycopg2
pip list
# Python 3.* - If Python 3 is installed, the module also must be installed
sudo apt-get install python3-setuptools python3-pip
sudo easy_install3 psycopg2
pip-3.2 list
-or-
pip-3.3 list
If after using easy_install, it still shows error, this link was current at the time this was posted: http://initd.org/psycopg/install/
wget http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz
tar xfvz psycopg2-2.5.1.tar.gz
cd psycopg2-2.5.1/
sudo python setup.py install
sudo python3 setup.py install
pip-3.2 list
-or-
pip-3.3 list
#For Ubuntu 13.10, python3 uses pip3, not pip3.2
PHP
sudo apt-get install php5-json
APC
sudo apt-get install php-apc
sudo service apache2 restart
sudo cp /usr/share/doc/php-apc/apc.php /var/www/nZEDb/www/admin
Now you can go to localhost/admin/apc.php in your browser to view apc stats.
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
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).
<VirtualHost *:80>
<Directory /domains/www/example.com/newz/www/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ServerAdmin [email protected]
ServerName example.com
ServerAlias www.example.com
DocumentRoot /domains/www/example.com/newz/www
LogLevel warn
ServerSignature Off
</VirtualHost>