forked from nZEDb/nZEDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUbuntu 12.10 INSTALL GUIDE.txt
executable file
·145 lines (101 loc) · 3.81 KB
/
Ubuntu 12.10 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
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
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
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
6. 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
7. Run the installer.
(change localhost for the server's IP if you are browsing on another computer)
http://localhost/install
8. Configure the site.
Enable some groups in view groups.
Change settings in edit site (set api keys, set paths to unrar etc..)
9. 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.