forked from nZEDb/nZEDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ubuntu 13.04 INSTALL GUIDE.txt
executable file
·180 lines (127 loc) · 5.11 KB
/
Ubuntu 13.04 INSTALL GUIDE.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Guide based on newznab 11.10 guide.
From a command line:
0. Misc :
For those using an older version of ubuntu, php 5.4 is required.
Ubuntu 12.04 requires backports a user reported.
Apparmor interferes with some of our files, here is how to disable it:
sudo /etc/init.d/apparmor stop
sudo /etc/init.d/apparmor teardown
sudo update-rc.d -f apparmor remove
For the threaded scripts you will require the Python MySQLdb module:
Python 2.*
apt-get install python-setuptools
python -m easy_install
easy_install cymysql
Python 3.* - If Python 3 is installed, the module also must be installed
apt-get install python3-setuptools
python3 -m easy_install pip
pip-3.2 install cymysql
-or-
pip-3.3 install cymysql
1. Update/upgrade :
sudo apt-get update
sudo apt-get upgrade
sudo reboot
2. Install and configure PHP.
Install PHP:
sudo apt-get install -y php5 php5-dev php-pear php5-gd php5-mysql php5-curl
Configure PHP using the nano text editor:
sudo nano /etc/php5/cli/php.ini
Change the following settings:
register_globals = Off
max_execution_time = 120
(you can set 1024M to -1 if you have lots of RAM)
memory_limit = 1024M
(change Europe/London to your settings, see the php.net site for valid ones, remove the ; if there is one preceeding the date.timezone)
date.timezone = Europe/London
Press control+x when you are done.
3. Install MYSQL.
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
4. Install and configure Apache
Install apache:
sudo apt-get install apache2
Configure the php file:
sudo nano /etc/php5/apache2/php.ini
Change the following settings:
register_globals = Off
max_execution_time = 120
(you can set 1024M to -1 if you have lots of RAM)
memory_limit = 1024M
(change Europe/London to your settings, see the php.net site for valid ones, remove the ; if there is one preceeding the date.timezone)
date.timezone = Europe/London
**For Apache 2.4, you must do the following change to /etc/apache2/apache2.conf:**
Under <Directory /var/www/>, change AllowOverride None to AllowOverride All
**********************************************************************************
Create the site config:
sudo nano /etc/apache2/sites-available/nZEDb
Paste the following:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
# These paths should be fine
DocumentRoot /var/www/nZEDb/www
ErrorLog /var/log/apache2/error.log
LogLevel warn
</VirtualHost>
Enable the site/etc:
sudo a2dissite default
sudo a2ensite nZEDb
sudo a2enmod rewrite
sudo service apache2 restart
*****If you get the following error:**********
(Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName)
sudo sh -c 'echo "ServerName localhost" >> /etc/apache2/conf.d/name' && sudo service apache2 restart
**********************************************
5. Install unrar / ffmpeg / mediainfo / lame.
sudo apt-get install software-properties-common
sudo apt-get install unrar python-software-properties lame
************Ubuntu 12.10***************************
sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo add-apt-repository ppa:shiki/mediainfo
sudo apt-get update
sudo apt-get install mediainfo ffmpeg x264
***************************************************
************Ubuntu 13.04***************************
Read the following to compile/install x264 and ffmpeg.
http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
For mediainfo:
sudo add-apt-repository ppa:shiki/mediainfo
sudo nano /etc/apt/sources.list.d/shiki-mediainfo-raring.list
Change the 2 raring words to quantal.
sudo apt-get update
sudo apt-get install mediainfo
***************************************************
6. Install memcache / apc.
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
In the future 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
7. Git clone the nZEDb source.
(if the folder doesn't exist, make it)
cd /var/www/
sudo chmod 777 .
sudo apt-get install git
git clone https://github.com/nZEDb/nZEDb.git
sudo chmod 777 nZEDb
cd nZEDb
sudo chmod -R 755 .
sudo chmod 777 /var/www/nZEDb/www/lib/smarty/templates_c
sudo chmod -R 777 /var/www/nZEDb/www/covers
sudo chmod 777 /var/www/nZEDb/www
sudo chmod 777 /var/www/nZEDb/www/install
sudo chmod -R 777 /var/www/nZEDb/nzbfiles
8. Run the installer.
(change localhost for the server's IP if you are browsing on another computer)
http://localhost/install
9. Configure the site.
Enable some groups in view groups.
Change settings in edit site (set api keys, set paths to unrar etc..)
10. Start indexing groups.
Use scripts in misc/update_scripts (update_binaries to get articles, update_releases to create releases).
Use scripts in misc/update_scipts/nix_scripts to automate it.