|
Lines 1-448
Link Here
|
| 1 |
============================= |
1 |
================================================================= |
| 2 |
Installation Guide for Installing Koha on Ubuntu Jaunty (9.04) with MySQL 5 |
2 |
Instructions for Installing Koha from Source |
| 3 |
============================= |
3 |
================================================================= |
| 4 |
|
4 |
|
| 5 |
Copyright (C) 2007, 2008 LibLime (http://liblime.com) |
5 |
BUG REPORTS AND FEEDBACK |
| 6 |
Some parts copyright 2010 Chris Nighswonger |
6 |
================================================================= |
|
|
7 |
|
| 8 |
This document last modified: 01 September 2013 |
| 9 |
|
| 10 |
Given the nature of documentation to become outdated, or have |
| 11 |
problems, please either submit feedback or bug reports. |
| 7 |
|
12 |
|
| 8 |
Original author: Joshua Ferraro |
13 |
Bug reports can be posted at http://bugs.koha-community.org |
| 9 |
Modified for Ubuntu by: Chris Nighswonger (cnighswonger AT foundations DOT edu) |
|
|
| 10 |
|
14 |
|
| 11 |
Feedback/bug reports: Koha Developer's List: |
15 |
Feedback can be posted on the Koha Developer's List: |
| 12 |
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel |
16 |
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel |
| 13 |
|
17 |
|
| 14 |
This document last modified: 20 March 2010 |
|
|
| 15 |
|
18 |
|
| 16 |
Installation Instructions |
19 |
INTRODUCTION |
| 17 |
============================= |
20 |
================================================================= |
|
|
21 |
|
| 22 |
These are the instructions for installing Koha from source. They |
| 23 |
have been tested using Ubuntu 12.04 LTS. The copyright, |
| 24 |
licensing, and other details have been put at the end, so the |
| 25 |
installation can be started as soon as possible. |
| 26 |
|
| 27 |
'nano' is a generic text editor. Please feel free to substitute |
| 28 |
your favourite editor (vi, emacs, gedit, or etc.). |
| 29 |
|
| 30 |
To install Koha for production, it is recommended that you use |
| 31 |
packages. Installing from packages is not the same as installing |
| 32 |
from source. These are not your recommended instructions for |
| 33 |
production servers. |
| 34 |
|
| 35 |
To help assist with the development and improvement of Koha, |
| 36 |
continue with these instructions and read more about version |
| 37 |
control using git! See USEFUL REFERENCE LINKS below. |
| 38 |
|
| 39 |
These instructions are intended for those who are skilled. |
| 40 |
They can be used to set up a development system. This install |
| 41 |
may not be as easy or smooth as you wish. This is to be expected |
| 42 |
when installing from source. |
| 43 |
|
| 44 |
|
| 45 |
NOTATION |
| 46 |
================================================================= |
| 47 |
|
| 48 |
Commands are indented by 4 spaces, and should be relately obvious |
| 49 |
as commands. Commands may have blank lines between them to |
| 50 |
indicate that you should not just copy and paste the entire block |
| 51 |
of commands. |
| 52 |
|
| 53 |
File contents will be surrounded by the plus symbols with a |
| 54 |
"FILE FULL" or "FILE PARTIAL" and the filename above the plus |
| 55 |
symbols surrounding file contents. |
| 56 |
|
| 57 |
Koha is released monthly, so keeping documentation up to date |
| 58 |
is difficult. The convention is to replace the last number with |
| 59 |
an x. For example, the current version is part of the 3.14.x |
| 60 |
series and the former stable version is the 3.12.x series. |
| 61 |
|
| 62 |
|
| 63 |
INSTALL UBUNTU |
| 64 |
================================================================= |
| 65 |
|
| 66 |
These instructions assume that you have already installed Ubuntu |
| 67 |
from the official site: http://www.ubuntu.com/download/server |
| 68 |
|
| 69 |
There is no need to install extra packages during the Ubuntu |
| 70 |
installation. Apache2 and MySQL will be installed in the |
| 71 |
instructions later. |
| 72 |
|
| 73 |
Installing a mail transfer agent before installing Koha will |
| 74 |
prevent the installation of nullmailer. Such an installation |
| 75 |
and configuration of a mail transfer agent is beyond the |
| 76 |
scope of this document. Consult your system administrator, |
| 77 |
network administrator, or IT Department for assistance as needed. |
| 78 |
|
| 79 |
These instructions assume you created a user account with your |
| 80 |
login in credentials and not one called koha. This is to prevent |
| 81 |
the system user koha from having more permissions than it should. |
| 82 |
|
| 18 |
|
83 |
|
| 19 |
All commands can be performed as a system user with sudo privileges, |
84 |
ADD A KOHA COMMUNITY REPOSITORY |
| 20 |
as indicated or by running the command directly as root. |
85 |
================================================================= |
| 21 |
|
86 |
|
| 22 |
1. Prepare System and Install Dependencies |
87 |
These instructions still function even though the latest version |
|
|
88 |
of Debian is wheezy. If the version has changed again, please |
| 89 |
confirm these instructions on the mailing list or IRC channel. |
| 23 |
|
90 |
|
| 24 |
1.1 Install Ubuntu Jaunty via CD |
91 |
To avoid getting prompted for a password in the middle of a |
|
|
92 |
chain of commands type the following: |
| 93 |
sudo ls |
| 25 |
|
94 |
|
| 26 |
See http://www.ubuntu.com/getubuntu/download |
95 |
IF YOU ARE DOING A STANDARD (tarball) INSTALL use the following |
|
|
96 |
command: |
| 97 |
echo deb http://debian.koha-community.org/koha squeeze main | sudo tee /etc/apt/sources.list.d/koha.list |
| 27 |
|
98 |
|
| 28 |
1.2 Set up your locale |
99 |
IF YOU ARE DOING A DEV (typically git) INSTALL use the following |
|
|
100 |
command: |
| 101 |
echo deb http://debian.koha-community.org/koha squeeze-dev main | sudo tee /etc/apt/sources.list.d/koha.list |
| 29 |
|
102 |
|
| 30 |
Your locale should be set to UTF-8, as should Apache2 and MySQL 5. |
103 |
To use the older stable release: |
| 31 |
This step is VERY IMPORTANT for a UNICODE compliant system. Please |
104 |
echo deb http://debian.koha-community.org/koha oldstable main | sudo tee /etc/apt/sources.list.d/koha.list |
| 32 |
read over the following document carefully: |
105 |
Intentionally not indented, as the others are preferred. |
| 33 |
|
106 |
|
| 34 |
http://wiki.koha-community.org/wiki/Encoding_and_Character_Sets_in_Koha |
107 |
FOR EITHER INSTALLATION: |
|
|
108 |
Add the key in gpg.asc to your APT trusted keys to avoid |
| 109 |
warning messages on installation: |
| 110 |
wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add - |
| 35 |
|
111 |
|
| 36 |
You can verify your system locale by typing the following command: |
|
|
| 37 |
|
112 |
|
| 38 |
$ locale |
113 |
UPDATE UBUNTU |
|
|
114 |
================================================================= |
| 39 |
|
115 |
|
| 40 |
IMPORTANT: You _MUST_ follow all the steps outlined there for |
116 |
This process, particularly the upgrade step, may take a while. |
| 41 |
Apache2, MySQL 5, etc. BEFORE you install Koha. |
|
|
| 42 |
|
117 |
|
| 43 |
1.3 Install the Yaz and Zebra packages |
118 |
sudo apt-get update |
| 44 |
|
119 |
|
| 45 |
Run the following command to update your system: |
120 |
sudo apt-get upgrade |
| 46 |
|
121 |
|
| 47 |
$ sudo apt-get update |
122 |
sudo apt-get clean |
| 48 |
$ sudo apt-get install yaz idzebra-2.0 idzebra-2.0-doc |
|
|
| 49 |
|
123 |
|
| 50 |
1.4 Get Koha |
|
|
| 51 |
|
124 |
|
| 52 |
1.4.1 Option A: Download Koha via Git (optional) |
125 |
DOWNLOAD THE LATEST KOHA RELEASE |
|
|
126 |
================================================================= |
| 53 |
|
127 |
|
| 54 |
$ sudo apt-get install git-core git-email |
128 |
There are two ways to grab the source, either by using git |
| 55 |
$ git clone git://git.koha-community.org/koha.git kohaclone |
129 |
or by downloading the .tar.gz file. Git is recommended for a |
| 56 |
$ cd kohaclone |
130 |
development environment. |
| 57 |
$ git checkout -b myinstall origin |
|
|
| 58 |
|
131 |
|
| 59 |
Note: for more information about Git, please see the Koha Git Usage Guide: |
132 |
IF YOU ARE DOING A STANDARD INSTALLATION: |
|
|
133 |
Downloading Source Via Tarball |
| 134 |
================================================================= |
| 60 |
|
135 |
|
| 61 |
http://wiki.koha-community.org/wiki/Version_Control_Using_Git |
136 |
wget http://download.koha-community.org/koha-latest.tar.gz |
|
|
137 |
tar xvf koha-latest.tar.gz |
| 138 |
ls |
| 62 |
|
139 |
|
| 63 |
1.4.2 Option B: Download Koha from http://download.koha-community.org |
140 |
NOTE: You need to cd into the koha directory, but since the |
|
|
141 |
version changes, you'll know by the ls command what it is. |
| 64 |
|
142 |
|
| 65 |
$ wget http://download.koha-community.org/koha-3.00.02.tar.gz |
143 |
IF YOU ARE DOING A DEV INSTALLATION: |
| 66 |
( Note: use the latest stable version) |
144 |
Downloading Source Via Git |
|
|
145 |
================================================================= |
| 67 |
|
146 |
|
| 68 |
1.5 Install additional Ubuntu dependencies |
147 |
Please see the following wiki page, following the instructions up |
|
|
148 |
to and including "git checkout -b mywork origin". |
| 149 |
http://wiki.koha-community.org/wiki/Version_Control_Using_Git |
| 69 |
|
150 |
|
| 70 |
IMPORTANT: You should only use CPAN for Perl dependencies which are NOT |
|
|
| 71 |
available from the package maintainer. You have been warned! |
| 72 |
|
151 |
|
| 73 |
Using the ubuntu.packages file included in the Koha source tree, |
152 |
INSTALL DEPENDENCIES |
| 74 |
run the following: |
153 |
================================================================= |
| 75 |
|
154 |
|
| 76 |
$ sudo dpkg --set-selections < install_misc/ubuntu.packages |
155 |
Dependencies from Repository |
|
|
156 |
================================================================= |
| 77 |
|
157 |
|
| 78 |
Now start dselect (you may need to 'sudo apt-get install dselect'): |
158 |
The repository added has koha-deps and koha-perldeps packages |
|
|
159 |
which make it very easy. Type the following: |
| 160 |
sudo apt-get install koha-deps koha-perldeps make |
| 79 |
|
161 |
|
| 80 |
$ sudo dselect |
162 |
Check For Missing Dependencies |
|
|
163 |
================================================================= |
| 81 |
|
164 |
|
| 82 |
Choose [I]nstall and accept packages to be installed (hit return) |
165 |
Check everything was installed, by running the test script to |
|
|
166 |
identifty missing libraries: |
| 167 |
./koha_perl_deps.pl -m -u |
| 83 |
|
168 |
|
| 84 |
(may take a while) |
169 |
Install any required libraries that are missing. It is a good |
|
|
170 |
idea to install optional ones that are easily found as well. |
| 85 |
|
171 |
|
| 86 |
Choose [C]onfigure, [R]emove and [Q]uit until dselect has completed. |
|
|
| 87 |
|
172 |
|
| 88 |
1.6 Install Perl dependencies that aren't packaged into Ubuntu Jaunty |
173 |
CREATE MYSQL DATABASE AND GRANT PRIVILEGES |
| 89 |
sources |
174 |
================================================================= |
| 90 |
|
175 |
|
| 91 |
Run the following command: |
176 |
Create MySQL Database |
|
|
177 |
================================================================= |
| 92 |
|
178 |
|
| 93 |
$ sudo cpan GD GD::Barcode::UPCE Algorithm::CheckDigits::M43_001 CHI CHI::Driver::Memcached |
179 |
If you have difficulty accessing MySQL's root acount, perhaps |
|
|
180 |
this Ubuntu page on resetting the root password may help. |
| 181 |
https://help.ubuntu.com/community/MysqlPasswordReset |
| 94 |
|
182 |
|
| 95 |
Note: you may need to run CPAN initialization if you've not run cpan |
183 |
mysql -u root -p |
| 96 |
before: |
|
|
| 97 |
|
184 |
|
| 98 |
/etc/perl/CPAN/Config.pm initialized. |
185 |
CREATE DATABASE kohadata; |
| 99 |
|
186 |
|
| 100 |
CPAN is the world-wide archive of perl resources. It consists of about |
187 |
The koha database has now been created with the name kohadata. |
| 101 |
100 sites that all replicate the same contents all around the globe. |
|
|
| 102 |
Many countries have at least one CPAN site already. The resources |
| 103 |
found on CPAN are easily accessible with the CPAN.pm module. If you |
| 104 |
want to use CPAN.pm, you have to configure it properly. |
| 105 |
|
188 |
|
| 106 |
If you do not want to enter a dialog now, you can answer 'no' to this |
189 |
Create User and Grant Permissions |
| 107 |
question and I'll try to autoconfigure. (Note: you can revisit this |
190 |
================================================================= |
| 108 |
dialog anytime later by typing 'o conf init' at the cpan prompt.) |
|
|
| 109 |
|
191 |
|
| 110 |
Are you ready for manual configuration? [yes] |
192 |
Continue entering MySQL commands. SUBSTITUTE A PASSWORD OF YOUR |
|
|
193 |
CHOICE FOR THE {KOHA USER PASSWORD}'S IN THE FOLLOWING COMMANDS: |
| 111 |
|
194 |
|
| 112 |
When the configuration is completed CPAN will install the Perl modules. |
195 |
CREATE user 'koha'@'localhost' IDENTIFIED by '{KOHA USER PASSWORD}'; |
|
|
196 |
GRANT ALL ON kohadata.* TO 'koha'@'localhost' IDENTIFIED BY '{KOHA USER PASSWORD}'; |
| 197 |
FLUSH PRIVILEGES; |
| 198 |
QUIT |
| 113 |
|
199 |
|
| 114 |
2. Configuration of dependencies |
200 |
The koha administrative user has now been created with the name |
|
|
201 |
koha and the password of your choosing. |
| 115 |
|
202 |
|
| 116 |
2.1 Update root MySQL password (if dselect didn't do it for you already) |
|
|
| 117 |
|
203 |
|
| 118 |
$ sudo mysqladmin password <password> |
204 |
CONFIGURE KOHA |
|
|
205 |
================================================================= |
| 119 |
|
206 |
|
| 120 |
2.2 Create the Koha database |
207 |
User/Group Environment Variables |
|
|
208 |
================================================================= |
| 121 |
|
209 |
|
| 122 |
Create the database and user with associated privileges: |
210 |
IF YOU ARE DOING A STANDARD INSTALLATION, then create a |
|
|
211 |
seperate koha system user: |
| 212 |
sudo adduser koha |
| 123 |
|
213 |
|
| 124 |
$ mysqladmin -uroot -p<password> create <kohadatabasename> |
214 |
There is no need to set the following environment variables, |
| 125 |
$ mysql -uroot -p<password> |
215 |
because koha is the default account to use. |
| 126 |
|
216 |
|
| 127 |
Welcome to the MySQL monitor. Commands end with ; or \g. |
217 |
IF YOU ARE DOING A DEV INSTALLATION, then create some |
| 128 |
Your MySQL connection id is 22 |
218 |
environment variables for the process to pick up and use later: |
| 129 |
Server version: 5.0.32-Debian_7etch3-log Debian etch distribution |
219 |
export __KOHA_USER__=$USER |
|
|
220 |
export __KOHA_GROUP__=$USER |
| 221 |
echo $USER |
| 130 |
|
222 |
|
| 131 |
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. |
223 |
The output of the echo command should match your user id, |
|
|
224 |
and since the user id and group id are generally the same for |
| 225 |
a freshly created account, this will make sure the indexing |
| 226 |
happens as this account. |
| 132 |
|
227 |
|
| 133 |
mysql> grant all on <kohadatabasename>.* to '<kohadatabaseuser>'@'localhost' identified by '<kohadatabaseuserpassword>'; |
|
|
| 134 |
Query OK, 0 rows affected (0.00 sec) |
| 135 |
|
228 |
|
| 136 |
mysql> flush privileges; |
229 |
GENERATE MAKE FILE |
| 137 |
Query OK, 0 rows affected (0.00 sec) |
230 |
================================================================= |
| 138 |
|
231 |
|
| 139 |
mysql> quit |
232 |
perl Makefile.PL |
| 140 |
|
233 |
|
| 141 |
2.3 Test your SAX Parser and correct where necessary |
234 |
How you answer the first question will affect where things will |
|
|
235 |
end up being placed. It is recommended that choose 'standard' if |
| 236 |
you are doing a tarball install, and 'dev' if you are doing a |
| 237 |
git install. |
| 142 |
|
238 |
|
| 143 |
You must be sure you're using the XML::LibXML SAX parser, not Expat or PurePerl, both of which have outstanding bugs with pre-composed characters. You can test your SAX parser by running: |
239 |
Answering the resulting questions requires thinking. Here are |
|
|
240 |
some hints. |
| 144 |
|
241 |
|
| 145 |
$ cd koha |
242 |
Recall that the database created is kohadata set in the Create |
| 146 |
$ misc/sax_parser_print.pl |
243 |
MySQL Database step. The username and password were set up in |
|
|
244 |
the Create User and Grant Permissions step. |
| 147 |
|
245 |
|
| 148 |
You should see something like:: |
246 |
Give some thought should be given to the MARC format desired |
|
|
247 |
and the method of character normalization (chr or icu), though |
| 248 |
the defaults will work as MARC21 just fine. |
| 149 |
|
249 |
|
| 150 |
XML::LibXML::SAX::Parser=HASH(0x81fe220) |
250 |
Use the same username and password for the Zebra questions. |
| 151 |
|
251 |
|
| 152 |
If you're using PurePerl or Expat, you'll need to edit your |
252 |
Don't worry about warnings generated by optional components. |
| 153 |
ini file, typically located at: |
|
|
| 154 |
|
253 |
|
| 155 |
/etc/perl/XML/SAX/ParserDetails.ini |
|
|
| 156 |
|
254 |
|
| 157 |
You will need to move the entire section for '[XML::LibXML::SAX::Parser]' to the bottom of the ini file. |
255 |
BUILD AND TEST KOHA |
|
|
256 |
================================================================= |
| 158 |
|
257 |
|
| 159 |
2.4 Install DBD::mysql Perl module |
258 |
Having configured Koha, build it using the following command: |
|
|
259 |
make |
| 160 |
|
260 |
|
| 161 |
In order to handle UTF-8 correctly, Koha requires at least version 4.004 |
261 |
Once this has successfully run, test Koha using the following command: |
| 162 |
of the DBD::mysql Perl module. However, Debian Etch has a stable package |
262 |
make test |
| 163 |
only for version 3.0008, so it is necessary to install the module from CPAN. |
|
|
| 164 |
DBD::mysql's test suite needs to use a MySQL 'test' DB which doesn't exist |
| 165 |
anymore. So there are two options to install DBD::mysql: |
| 166 |
|
263 |
|
| 167 |
(1) install without test suite, |
264 |
Don't worry about the large number of scary warning scrolling |
| 168 |
(2) install with test suite requiring a test MySQL DB creation. |
265 |
by. All that matters is "PASS" or "FAIL". |
| 169 |
|
266 |
|
| 170 |
2.4.1 Install without test suite |
267 |
If this fails, it is likely due to a failed dependency. Remember, |
|
|
268 |
a source installation is not always smooth. You can determine the |
| 269 |
missing dependency by scrolling back and looking for something |
| 270 |
like: Can't locate Cache/Memcached/Fast.pm in @INC |
| 271 |
Install it, and try to build and test again. |
| 171 |
|
272 |
|
| 172 |
Force install DBD::mysql: |
|
|
| 173 |
|
273 |
|
| 174 |
$ sudo cpan |
274 |
INSTALL KOHA |
| 175 |
cpan> force install DBD::mysql |
275 |
================================================================= |
| 176 |
|
276 |
|
| 177 |
2.4.2 Create test database in order to install DBD::mysql |
277 |
Once the make test has successfully run, install Koha. |
| 178 |
|
278 |
|
| 179 |
Because of DBD::mysql's test suite, it is necessary to temporarily create a |
279 |
IF YOU ARE DOING A STANDARD INSTALLATION, using the |
| 180 |
test database and user: |
280 |
following command (follow any on screen prompts): |
|
|
281 |
sudo make install |
| 181 |
|
282 |
|
| 182 |
$ mysql -uroot -p<password> |
283 |
Once this has successfully run, Koha is almost installed. There |
|
|
284 |
are only a few more steps left. |
| 183 |
|
285 |
|
| 184 |
Create the database and user with associated privileges: |
286 |
IF YOU ARE DOING A DEV INSTALLATION, using the |
|
|
287 |
following command (follow any on screen prompts): |
| 288 |
make install |
| 185 |
|
289 |
|
| 186 |
Welcome to the MySQL monitor. Commands end with ; or \g. |
290 |
No sudo is required as you have access to the directories |
| 187 |
Your MySQL connection id is 22 |
291 |
listed above. |
| 188 |
Server version: 5.0.32-Debian_7etch3-log Debian etch distribution |
|
|
| 189 |
|
292 |
|
| 190 |
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. |
293 |
FOR EITHER INSTALLATION: |
|
|
294 |
Near the end of this command, the output will have two lines |
| 295 |
containing KOHA_CONF and PERL5LIB in them. Take note of the two |
| 296 |
export commands as you will need them for a later step. |
| 191 |
|
297 |
|
| 192 |
mysql> create database test; |
|
|
| 193 |
Query OK, 1 row affected (0.00 sec) |
| 194 |
|
298 |
|
| 195 |
mysql> grant all on test.* to 'test'@'localhost' identified by 'test'; |
299 |
PRE-WEB INSTALL SETUP |
| 196 |
Query OK, 0 rows affected (0.00 sec) |
300 |
================================================================= |
| 197 |
(test database, user, and password can be different if need be) |
|
|
| 198 |
|
301 |
|
| 199 |
mysql> flush privileges; |
302 |
UBUNTU MYSQL SECURITY TWEAK |
| 200 |
Query OK, 0 rows affected (0.00 sec) |
303 |
================================================================= |
| 201 |
|
304 |
|
| 202 |
mysql> quit |
305 |
There is a security risk in Ubuntu's MySQL default set up. Type |
|
|
306 |
the following commands: |
| 307 |
mysql -u root -p |
| 203 |
|
308 |
|
| 204 |
Next install DBD::mysql: |
309 |
USE mysql; |
|
|
310 |
DELETE FROM user WHERE user=''; |
| 311 |
FLUSH PRIVILEGES; |
| 312 |
QUIT |
| 205 |
|
313 |
|
| 206 |
$ sudo cpan |
314 |
The anonymous connections are now removed. |
| 207 |
|
315 |
|
| 208 |
cpan> o conf makepl_arg |
|
|
| 209 |
(get current value of this CPAN parameter) |
| 210 |
|
316 |
|
| 211 |
cpan> o conf makepl_arg "--testdb=test --testuser=test --testpass=test" |
317 |
CONFIGURE SYSTEM WIDE ENVIRONMENT VARIABLES |
|
|
318 |
================================================================= |
| 212 |
|
319 |
|
| 213 |
cpan> install DBD::mysql |
320 |
Running scripts and cron jobs requires environment variables set. |
|
|
321 |
Use the following commands: |
| 322 |
sudo nano /etc/environment |
| 214 |
|
323 |
|
| 215 |
cpan> o conf makepl_arg '' |
324 |
IF YOU ARE DOING A DEV INSTALLATON: |
|
|
325 |
FILE PARTIAL (ADD): /etc/environment |
| 326 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 327 |
KOHA_CONF=/home/{YOUR USER NAME}/koha-dev/etc/koha-conf.xml |
| 328 |
KOHA_PATH=/home/{YOUR USER NAME}/kohaclone |
| 329 |
PERL5LIB=/home/{YOUR USER NAME}/kohaclone |
| 330 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 331 |
NOTE: CHANGE {YOUR USER NAME} TO YOUR ACTUAL USER NAME! |
| 216 |
|
332 |
|
| 217 |
OR |
333 |
IF YOU ARE DOING A STANDARD INSTALLATON: |
|
|
334 |
FILE PARTIAL (ADD): /etc/environment |
| 335 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 336 |
KOHA_CONF=/etc/koha/koha-conf.xml |
| 337 |
KOHA_PATH=/usr/share/koha |
| 338 |
PERL5LIB=/usr/share/koha/lib |
| 339 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 218 |
|
340 |
|
| 219 |
cpan> o conf makepl_arg '<old setting>' |
341 |
logout |
| 220 |
|
342 |
|
| 221 |
(restore this setting so as to not interfere with future CPAN installs). |
343 |
You need to logout and back in in order to get the environment |
|
|
344 |
variables values to be recognized. |
| 222 |
|
345 |
|
| 223 |
|
346 |
|
| 224 |
Finally, remove the test database: |
347 |
CONFIGURE AND START APACHE |
|
|
348 |
================================================================= |
| 225 |
|
349 |
|
| 226 |
$ mysql -uroot -p<password> |
350 |
Place Koha Site File |
|
|
351 |
================================================================= |
| 227 |
|
352 |
|
| 228 |
mysql> drop database test; |
353 |
IF YOU ARE DOING A DEV INSTALLATION, use the following command: |
| 229 |
Query OK, 1 row affected (0.00 sec) |
354 |
sudo ln -s ~/koha-dev/etc/koha-httpd.conf /etc/apache2/sites-available/koha |
| 230 |
|
355 |
|
| 231 |
mysql> exit |
356 |
IF YOU ARE DOING A STANDARD INSTALLATION, use the following command: |
| 232 |
Bye |
357 |
sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha |
| 233 |
|
358 |
|
| 234 |
3. Run the Koha installer |
359 |
Tweak Koha Site File |
|
|
360 |
================================================================= |
| 235 |
|
361 |
|
| 236 |
$ perl Makefile.PL |
362 |
The default file limits connections to those from 127.0.1.1 |
| 237 |
( answer questions ) |
363 |
(or 127.0.0.1), which is rather difficult to test/use in a |
| 238 |
$ make |
364 |
server environment. Edit the file: |
| 239 |
$ make test |
365 |
sudo nano /etc/apache2/sites-available/koha |
| 240 |
$ sudo make install |
|
|
| 241 |
|
366 |
|
| 242 |
4. Configure and start Apache |
367 |
/etc/apache2/sites-available/koha will have a line |
| 243 |
$ sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha |
368 |
that should have the IP address changed to a *. |
| 244 |
(note that the path to koha-httpd.conf may be different depending on your |
369 |
FILE PARTIAL (CHANGE): /etc/apache2/sites-available/koha |
| 245 |
installation choices) |
370 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
|
371 |
<VirtualHost *:80> |
| 372 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 246 |
|
373 |
|
| 247 |
Add the following lines to /etc/apache2/ports.conf: |
374 |
/etc/apache2/sites-available/koha will have another line |
|
|
375 |
that should have the IP address changed to a * |
| 376 |
FILE PARTIAL (CHANGE): /etc/apache2/sites-available/koha |
| 377 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 378 |
<VirtualHost *:8080> |
| 379 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 248 |
|
380 |
|
| 249 |
Listen 80 |
381 |
Setup Default Ports |
| 250 |
Listen 8080 |
382 |
================================================================= |
| 251 |
|
383 |
|
| 252 |
If not running named virtual hosts (The default koha installation does not use named virtual hosts.), comment out the following line: |
384 |
sudo nano /etc/apache2/ports.conf |
| 253 |
|
385 |
|
| 254 |
NameVirtualHost *:80 |
386 |
/etc/apache2/ports.conf must have two lines exactly like |
|
|
387 |
the following. Do not add them if they are already there. |
| 255 |
|
388 |
|
| 256 |
Run the following commands: |
389 |
FILE PARTIAL (CONFIRM/ADD/CHANGE): /etc/apache2/ports.conf |
|
|
390 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 391 |
Listen 80 |
| 392 |
Listen 8080 |
| 393 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 257 |
|
394 |
|
| 258 |
$ sudo a2enmod rewrite deflate |
395 |
/etc/apache2/ports.conf does not require NameVirtualHost. |
| 259 |
$ sudo a2ensite koha |
396 |
Do not add it if it is missing or already there. Just |
| 260 |
$ sudo apache2ctl restart |
397 |
prepend # accordingly. |
| 261 |
|
398 |
|
| 262 |
Note: you may still see the usual Apache default site if your VirtualHost |
399 |
FILE PARTIAL (CONFIRM/ADD/CHANGE): /etc/apache2/ports.conf |
| 263 |
configuration isn't correct. The command "sudo a2dissite default" may be a |
400 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 264 |
quick fix, but may have side-effects. See the Apache HTTPD manual section on |
401 |
#NameVirtualHost *:80 |
| 265 |
virtual hosts for full instructions. |
402 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 266 |
|
403 |
|
| 267 |
5. Configure and start Zebra |
404 |
Disable Default Site |
|
|
405 |
================================================================= |
| 268 |
|
406 |
|
| 269 |
Note: it's recommended that you daemonize the Zebra process and add it to your |
407 |
These short instructions assume that the default site is |
| 270 |
startup profile. For a non-production test/development installation, running |
408 |
not needed. Talk with your system administrator, network |
| 271 |
Zebra from the command line can be useful. Pick from the two available options |
409 |
administrator, or IT Department to CONFIRM THIS BEFORE RUNNING |
| 272 |
below, or roll your own :-) |
410 |
the following command: |
|
|
411 |
sudo a2dissite 000-default |
| 273 |
|
412 |
|
| 274 |
Note: it's also recommended that you create a Koha system user, which you will |
413 |
Enable Modules and Site |
| 275 |
have specified during the install process. Alternatively, Zebra can be |
414 |
================================================================= |
| 276 |
configured to run as the root user. |
|
|
| 277 |
|
415 |
|
| 278 |
To add a user do: |
416 |
Now enable the apache modules this config needs, enable koha's |
|
|
417 |
configuration, and restart apache. |
| 418 |
sudo a2enmod rewrite |
| 419 |
sudo a2enmod deflate |
| 420 |
sudo a2ensite koha |
| 421 |
sudo service apache2 restart |
| 279 |
|
422 |
|
| 280 |
$ sudo adduser koha |
|
|
| 281 |
|
423 |
|
| 282 |
Option 1: run the Zebra processes from the command line: |
424 |
SETUP ZEBRA |
|
|
425 |
================================================================= |
| 283 |
|
426 |
|
| 284 |
5.1.1 Zebra Search Server |
427 |
The zebra process send responses to search requests sent by Koha |
|
|
428 |
or Z39.50/SRU/SRW clients. |
| 285 |
|
429 |
|
| 286 |
This process send responses to search requests sent by Koha or |
430 |
The user you run Zebra as will be the only user with write |
| 287 |
Z39.50/SRU/SRW clients. |
431 |
permission on the Zebra index. For a standard installation, this |
|
|
432 |
should be the system user 'koha'. For a dev installation, this |
| 433 |
should be your system user. |
| 288 |
|
434 |
|
| 289 |
$ sudo -u ${KOHA_USER} zebrasrv -f /etc/koha/koha-conf.xml |
435 |
Start Zebra Server on Boot |
| 290 |
(note that the path to koha-conf.xml may be different depending on your |
436 |
================================================================= |
| 291 |
installation choices) |
|
|
| 292 |
|
437 |
|
| 293 |
Note: the user you run Zebra as will be the only user with write permission |
438 |
IF YOU ARE DOING A STANDARD INSTALLATION, use this command: |
| 294 |
on the Zebra index; in development mode, you may wish to use your |
439 |
sudo ln -s /usr/share/koha/bin/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon |
| 295 |
system user. |
|
|
| 296 |
|
440 |
|
| 297 |
5.1.2 Zebra Indexer |
441 |
IF YOU ARE DOING A DEV INSTALLATION, use this command: |
|
|
442 |
sudo ln -s ~/koha-dev/bin/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon |
| 298 |
|
443 |
|
| 299 |
Added/updated/deleted records in Koha MySQL database must be indexed |
444 |
FOR EITHER INSTALLATION: |
| 300 |
into Zebra. A specific script must be launched each time a bibliographic |
445 |
sudo update-rc.d koha-zebra-daemon defaults |
| 301 |
or an authority record is edited. |
446 |
sudo service koha-zebra-daemon start |
| 302 |
|
447 |
|
| 303 |
$ sudo -u ${KOHA_USER} misc/migration_tools/rebuild_zebra -z -b -a |
448 |
Configuring Zebra Indexing |
| 304 |
NOTE: This script should be run as the kohauser (the default is 'koha'). |
449 |
================================================================= |
| 305 |
|
450 |
|
| 306 |
Option 2: run the Zebra process as a daemon, and add to startup process: |
451 |
IF YOU ARE DOING A STANDARD INSTALLATION, use this command: |
|
|
452 |
sudo nano /etc/cron.d/koha |
| 307 |
|
453 |
|
| 308 |
Note that references to $SCRIPT_DIR refer to the directory where |
454 |
FILE FULL: /etc/cron.d/koha |
| 309 |
Koha's command-line scripts are installed, e.g., /usr/share/koha/bin. |
455 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
|
456 |
# The cronjobs -- $KOHA_PATH is defined in /etc/environment, and gets set when this process runs as a user (koha). |
| 457 |
*/5 * * * * koha $KOHA_PATH/bin/migration_tools/rebuild_zebra.pl -b -a -z &> /dev/null |
| 458 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 310 |
|
459 |
|
| 311 |
5.2.1 Zebra Search Server |
460 |
IF YOU ARE DOING A DEV INSTALLATION, use this command: |
|
|
461 |
crontab -e |
| 312 |
|
462 |
|
| 313 |
$ sudo ln -s ${SCRIPT_DIR}/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon |
463 |
FILE PARTIAL (ADD): |
| 314 |
(Note: ${SCRIPT_DIR} is /usr/share/koha/bin/ by default in a standard install) |
464 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 315 |
$ sudo update-rc.d koha-zebra-daemon defaults |
465 |
# The cronjobs -- $KOHA_PATH is defined in /etc/environment, and gets set when this process runs. |
| 316 |
( Note: see man chkconfig(8) on other distros ) |
466 |
*/5 * * * * $KOHA_PATH/misc/migration_tools/rebuild_zebra.pl -b -a -z &> /dev/null |
|
|
467 |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 317 |
|
468 |
|
| 318 |
$ sudo ${SCRIPT_DIR}/koha-zebra-ctl.sh start |
|
|
| 319 |
|
469 |
|
| 320 |
5.2.2 Zebra Indexer |
470 |
SETUP ADDITIONAL LANGUAGES |
|
|
471 |
================================================================= |
| 321 |
|
472 |
|
| 322 |
Add an entry in Koha user crontab to scheduled added/updated/deleted records |
473 |
To use multi-lingual sample data, please install languages |
| 323 |
indexing by Zebra with this command: |
474 |
which may be useful for use in the Koha system. |
| 324 |
|
475 |
|
| 325 |
<path/to/koha>/misc/migration_tools/rebuild_zebra -z -b -a |
476 |
Information on this can be found: |
|
|
477 |
http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for_OPAC_and_INTRANET_staff_client |
| 326 |
|
478 |
|
| 327 |
See check misc/cronjobs/crontab.example for usage examples. |
|
|
| 328 |
NOTE: This job should be setup under the kohauser (the default is 'koha'). |
| 329 |
|
479 |
|
| 330 |
You can also configure zebra-indexing as an background daemon, see http://wiki.koha-community.org/wiki/Background_indexing_with_Zebra |
480 |
WEB INSTALLATION |
|
|
481 |
================================================================= |
| 331 |
|
482 |
|
| 332 |
6. Run the Web Installer, populate the database, initial configuration of settings |
483 |
Now you can visit your staff client website to continue with the |
|
|
484 |
Koha web installer. The user name to log in with will be koha. |
| 333 |
|
485 |
|
| 334 |
Point your browser to http://<servername>:8080/ |
486 |
The password will be what you set in the 'Create User and |
|
|
487 |
Grant Permissions' section above. |
| 335 |
|
488 |
|
| 336 |
It should redirect you to the Web Installer where you can continue the setup. |
489 |
Lynx navigational keys include: tab to go between fields, enter |
| 337 |
You can install the sample data for libraries, patrons, etc. via the Web Installer |
490 |
(when not on text fields) to toggle or click, space to change |
|
|
491 |
pages (when not on text fields), Q to quit (when not on text |
| 492 |
fields). Arrows also work. |
| 338 |
|
493 |
|
| 339 |
7. What next? |
494 |
sudo apt-get install lynx |
| 340 |
|
495 |
|
| 341 |
Once the installer has completed, you can import and index MARC records from the |
496 |
lynx http://127.0.1.1:8080/ |
| 342 |
command line thusly (Note: you can also use the 'Stage MARC records for import' from |
|
|
| 343 |
the Tools area of Koha's Staff Client to import a batch of MARC records): |
| 344 |
|
497 |
|
| 345 |
$ export KOHA_CONF=/usr/share/koha/etc/koha-conf.xml |
|
|
| 346 |
(note: use the correct path to your koha-conf.xml) |
| 347 |
|
498 |
|
| 348 |
7.1 Import: |
499 |
SETUP YOUR LIBRARY IN KOHA |
| 349 |
Bibliographic data in MARC21 format |
500 |
================================================================= |
| 350 |
$ misc/migration_tools/bulkmarcimport.pl -file /path/to/marc.iso2709 |
|
|
| 351 |
Authority data in MARC21 format |
| 352 |
$ misc/migration_tools/bulkauthimport.pl -file /path/to/auth.iso2709 |
| 353 |
|
501 |
|
| 354 |
7.2 Fast Index: |
502 |
After the web install, you should be redirected to: |
| 355 |
$ misc/migration_tools/rebuild_zebra.pl -b -w |
503 |
http://127.0.1.1:8080 |
|
|
504 |
Follow these steps: |
| 505 |
- Login with koha user name and password. |
| 506 |
- Click on the More dropdown menu. |
| 507 |
- Select and click Administration. |
| 508 |
- Click Libraries and groups |
| 509 |
under the Basic Parameters heading. |
| 510 |
- Click New Library and enter your information into the form. |
| 511 |
- Click Submit. |
| 512 |
Your Library is now setup in Koha. |
| 356 |
|
513 |
|
| 357 |
Once the indexing has completed, you will be able to search for records in your system. |
514 |
Take the time to read the documentation to do other necessary |
| 358 |
NOTE: This script should be run as the kohauser (the default is 'koha'). |
515 |
setup tasks such as creating a patron, and importing or entering |
|
|
516 |
MARC data. The documentation for Koha can be found at: |
| 517 |
http://koha-community.org/documentation/ |
| 359 |
|
518 |
|
| 360 |
7.3 Schedule regular index updates |
|
|
| 361 |
|
519 |
|
| 362 |
You need to run rebuild_zebra.pl -b -a -z as a regular cron job in orde to pick up new bibs |
520 |
USEFUL REFERENCE LINKS |
| 363 |
and items as you add them. Check misc/cronjobs/crontab.example for usage examples. See 7.0 above. |
521 |
================================================================= |
| 364 |
NOTE: This job should be setup under the kohauser (the default is 'koha'). |
|
|
| 365 |
|
522 |
|
| 366 |
You can also indexing in background, see 5.2.2 above |
523 |
Documentation: |
|
|
524 |
http://koha-community.org/documentation/ |
| 367 |
|
525 |
|
| 368 |
7.4 To enable public Z39.50/SRU servers, you'll need to edit your koha-conf.xml and |
526 |
Additional Languages: |
| 369 |
change the <listen> options to listen on a TCP port; then restart the zebra daemon. |
527 |
http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for_OPAC_and_INTRANET_staff_client |
| 370 |
|
528 |
|
| 371 |
UPGRADE |
529 |
Stage MARC Records for Import: |
| 372 |
======= |
530 |
http://manual.koha-community.org/3.14/en/catalogtools.html#stagemarc |
| 373 |
If you are running in another language other than english, please |
531 |
NOTE: The URL has been similar since Koha version 3.8 |
| 374 |
switch to english before doing the upgrade, the templating system has |
|
|
| 375 |
changed and the templates will need to be regenerated. |
| 376 |
Once you have upgraded, please regenerate your templates in your |
| 377 |
chosen languages. |
| 378 |
|
532 |
|
| 379 |
If you are upgrading from a previous installation of Koha 3.x, you can |
533 |
Frequently Asked Questions: |
| 380 |
use the following: |
534 |
http://koha-community.org/documentation/faq |
| 381 |
|
535 |
|
| 382 |
./koha_perl_deps.pl -u -m # to identify new Perl dependencies |
536 |
Bug Reports: |
|
|
537 |
http://bugs.koha-community.org/ |
| 383 |
|
538 |
|
| 384 |
Install any missing modules |
539 |
Public Z39.50/SRU server: |
| 385 |
IMPORTANT: Koha 3.6.x uses Template::Toolkit, this must be installed |
540 |
http://wiki.koha-community.org/wiki/Troubleshooting_Koha_as_a_Z39.50_server |
| 386 |
before the webinstaller can run |
|
|
| 387 |
|
541 |
|
| 388 |
sudo apt-get install libtemplate-perl |
542 |
Alternate Indexing Method: |
|
|
543 |
http://wiki.koha-community.org/wiki/Background_indexing_with_Zebra |
| 389 |
|
544 |
|
| 390 |
perl Makefile.PL --prev-install-log /path/to/koha-install-log |
|
|
| 391 |
make |
| 392 |
make test |
| 393 |
sudo make upgrade |
| 394 |
|
545 |
|
| 395 |
Koha 3.4.x or later no longer stores items in biblio records so |
546 |
UPGRADING |
| 396 |
if you are upgrading from an older version as part of the |
547 |
================================================================= |
| 397 |
upgrade you will need to do the following two steps, they can take a |
|
|
| 398 |
long time (several hours) to complete for large databases |
| 399 |
|
548 |
|
| 400 |
misc/maintenance/remove_items_from_biblioitems.pl --run |
549 |
If you are running in another language other than English, |
| 401 |
misc/migration_tools/rebuild_zebra.pl -b -r |
550 |
please switch to English before doing the upgrade, the |
|
|
551 |
templating system has changed and the templates will need to |
| 552 |
be regenerated. |
| 402 |
|
553 |
|
| 403 |
Uninstall Instructions |
554 |
Once you have upgraded, please regenerate your templates in |
| 404 |
============================= |
555 |
your chosen languages. |
| 405 |
1) Stop Services: |
|
|
| 406 |
$ sudo a2dissite koha |
| 407 |
$ sudo rm /etc/apache2/sites-available/koha |
| 408 |
$ sudo apache2ctl restart |
| 409 |
|
556 |
|
| 410 |
$ sudo update-rc.d koha-zebra-daemon remove |
557 |
First, ensure the most recent dependencies are installed: |
| 411 |
$ sudo rm /etc/init.d/koha-zebra-daemon |
558 |
sudo apt-get update |
|
|
559 |
sudo apt-get install koha-deps koha-perldeps |
| 412 |
|
560 |
|
| 413 |
2) Remove Database and Indexes |
561 |
IF YOU ARE DOING A STANDARD UPGRADE: |
|
|
562 |
In order to upgrade, find the path to the koha install-log file: |
| 563 |
sudo find /usr/share/koha/ -name 'koha-install-log' |
| 414 |
|
564 |
|
| 415 |
# MySQL |
565 |
Change directory into the latest koha source directory, and then: |
| 416 |
$ mysql -u<kohauser> -p<kohapassword> |
566 |
perl Makefile.PL --prev-install-log /path/to/koha-install-log |
| 417 |
> drop database koha; |
|
|
| 418 |
|
567 |
|
| 419 |
# Zebra Indexes |
568 |
NOTE: Make sure to change the /path/to/koha-install-log to the |
| 420 |
$ zebraidx -c <prefix>/etc/zebradb/zebra-biblios.cfg -g iso2709 -d biblios init |
569 |
one that was found. |
| 421 |
$ zebraidx -c <prefix>/etc/zebradb/zebra-authorities.cfg -g iso2709 -d authorities init |
|
|
| 422 |
|
570 |
|
| 423 |
3) Remove Koha Install Directories and Configuration Files |
571 |
make |
| 424 |
Don't forget about any crontab entries |
572 |
make test |
| 425 |
|
573 |
|
| 426 |
Tested on the following operating environments |
574 |
And if that passes: |
| 427 |
============================================== |
575 |
sudo make upgrade |
| 428 |
- Ubuntu Jaunty Jackalope 9.04 |
|
|
| 429 |
|
576 |
|
| 430 |
Installer Bug reports |
577 |
IF YOU ARE DOING A DEV UPGRADE: |
| 431 |
===================== |
578 |
In order to upgrade, find the path to the koha install-log file: |
| 432 |
Please log any installer bug reports at http://bugs.koha-community.org |
579 |
find ~/koha-dev/ -name 'koha-install-log' |
| 433 |
|
580 |
|
| 434 |
Other Notes |
581 |
cd ~/kohaclone |
| 435 |
===================== |
582 |
perl Makefile.PL --prev-install-log /path/to/koha-install-log |
| 436 |
This file is part of Koha |
|
|
| 437 |
|
583 |
|
| 438 |
Koha is free software; you can redistribute it and/or modify it under the |
584 |
NOTE: Make sure to change the /path/to/koha-install-log to the |
| 439 |
terms of the GNU General Public License as published by the Free Software |
585 |
one that was found. |
| 440 |
Foundation; either version 2 of the License, or (at your option) any later |
|
|
| 441 |
version. |
| 442 |
|
586 |
|
| 443 |
Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
587 |
make |
| 444 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
588 |
make test |
| 445 |
A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
589 |
|
| 446 |
You should have received a copy of the GNU General Public License along |
590 |
And if that passes: |
| 447 |
with Koha; if not, write to the Free Software Foundation, Inc., |
591 |
make upgrade |
| 448 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
592 |
|
|
|
593 |
FOR EITHER UPGRADE TYPE: |
| 594 |
If you are upgrading from a version of Koha earlier than 3.4.x, |
| 595 |
Koha 3.4.x or later no longer stores items in biblio records: |
| 596 |
./misc/maintenance/remove_items_from_biblioitems.pl --run |
| 597 |
Intentionally not indented, in the hopes that most upgrades are |
| 598 |
post 3.4.x. |
| 599 |
|
| 600 |
Regardless of version you are upgrading from, a full reindex is |
| 601 |
always the best option: |
| 602 |
IF YOU ARE DOING A STANDARD UPGRADE |
| 603 |
sudo su -l koha --command="/usr/bin/perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -r -v" |
| 604 |
|
| 605 |
IF YOU ARE DOING A DEV UPGRADE |
| 606 |
./misc/migration_tools/rebuild_zebra.pl -b -a -r -v |
| 607 |
|
| 608 |
|
| 609 |
UNINSTALL INSTRUCTIONS |
| 610 |
================================================================= |
| 611 |
|
| 612 |
Stop Services |
| 613 |
================================================================= |
| 614 |
sudo a2dissite koha |
| 615 |
sudo rm /etc/apache2/sites-available/koha |
| 616 |
sudo service apache2 restart |
| 617 |
sudo update-rc.d koha-zebra-daemon remove |
| 618 |
sudo rm /etc/init.d/koha-zebra-daemon |
| 619 |
|
| 620 |
Remove Database |
| 621 |
================================================================= |
| 622 |
mysql -u koha -p |
| 623 |
|
| 624 |
drop database kohadata; |
| 625 |
quit |
| 626 |
|
| 627 |
Remove Indexes |
| 628 |
================================================================= |
| 629 |
|
| 630 |
IF DOING A STANDARD REMOVAL: |
| 631 |
zebraidx -c /etc/koha/zebradb/zebra-biblios.cfg -g iso2709 -d biblios init |
| 632 |
zebraidx -c /etc/koha/zebradb/zebra-authorities.cfg -g iso2709 -d authorities init |
| 633 |
sudo rm -rf /etc/koha |
| 634 |
sudo rm -rf /usr/share/koha |
| 635 |
sudo rm /etc/cron.d/koha |
| 636 |
|
| 637 |
You may wish to follow up with: |
| 638 |
sudo find / -t d -name "koha" |
| 639 |
to help find any remnants. |
| 640 |
|
| 641 |
IF DOING A DEV REMOVAL: |
| 642 |
The following will work, but is very dangerous! Please copy or |
| 643 |
type this correctly. |
| 644 |
zebraidx -c ~/koha-dev/etc/zebradb/zebra-biblios.cfg -g iso2709 -d biblios init |
| 645 |
zebraidx -c ~/koha-dev/etc/zebradb/zebra-authorities.cfg -g iso2709 -d authorities init |
| 646 |
rm -rf ~/koha-dev |
| 647 |
rm -rf ~/kohaclone |
| 648 |
NOTE: Don't forget to remove the crontab entries! |
| 649 |
|
| 650 |
|
| 651 |
LICENSE |
| 652 |
================================================================= |
| 653 |
|
| 654 |
This file is part of Koha. |
| 655 |
|
| 656 |
Major re-write by Mark Tompsett |
| 657 |
Copyright (C) 2013 |
| 658 |
|
| 659 |
Based on remnants by: |
| 660 |
Copyright (C) 2007, 2008 LibLime (http://liblime.com) |
| 661 |
Original author: Joshua Ferraro |
| 662 |
Some parts Copyright (C) 2010 Chris Nighswonger (modified for ubuntu) |
| 663 |
(cnighswonger AT foundations DOT edu) |
| 664 |
Some parts Copyright (C) 2012 Tomas Cohen Arazi |
| 665 |
(tomascohen AT gmail DOT com) |
| 666 |
Some parts Copyright (C) 2012 Mark Tompsett |
| 667 |
(mtompset AT hotmail DOT com) |
| 668 |
|
| 669 |
Koha is free software; you can redistribute it and/or modify it |
| 670 |
under the terms of the GNU General Public License as published by |
| 671 |
the Free Software Foundation; either version 3 of the License, or |
| 672 |
(at your option) any later version. |
| 673 |
|
| 674 |
Koha is distributed in the hope that it will be useful, but |
| 675 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 676 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 677 |
GNU General Public License for more details. |
| 678 |
|
| 679 |
You should have received a copy of the GNU General Public License |
| 680 |
along with Koha; if not, see <http://www.gnu.org/licenses>. |