1 =============================
2 Installation Guide for Installing Koha on Fedora Core 7
3 =============================
5 Copyright (C) 2008, Department of Computer and Information
6 Science, Library of the University Lyon 2, France
8 Translated by: Google with help from Joshua Ferraro
9 (jmf AT liblime DOT com)
11 Feedback/bug reports: Koha Developer's List:
12 http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
14 This document last modified: 30 April 2008
16 Installation Instructions
17 =============================
18 This document was prepared in order to help you discover (or
19 test) Koha (Integrated Library System).
21 The installation of Linux system described below is a basic,
22 it is not designed for a production server (e.g., security,
23 load balancing .. are not described).
25 This document describes the different stages of installing
26 the software to version 3.00 koha beta on a Fedora 7 Linux.
27 Your mileage may vary with different RedHat distributions.
29 1. LINUX SYSTEM INSTALLATION
31 System: Linux Fedora 7 (May 2007) Linux Redhat
32 The Linux distribution Fedora 7 is downloadable from the
35 http://fedoraproject.org/
37 The Fedora website also offers additional content such as
38 documentation, FAQ, etc.
40 Using the entire disk (removal of existing partitions and
41 therefore permanent loss of data stored on the disk) is
42 the easiest method; This is not the best practice for a
43 production system, but is useful for testing purposes.
45 Check that the computer is able to boot from a CD or DVD,
46 perhaps by changing the boot order in the bios.
48 Place the CD or DVD in the drive and restart the machine.
50 Settings when installing Linux (French specific, may not apply)
52 Language: French (French)
53 Choice of keyboard: French (Latin9) recognized by default.
54 Removal of existing Linux partitions
55 Host Name: NomMachine.NomDomaine.fr
56 Time zone: Europe/Paris. Click on the map or select from the
57 list and check system clock to UTC.
58 Informing the root password, which is the administrator account.
60 The installation of the system will automatically start and may
61 take between 15 to 30 minutes to complete.
65 Enter the default options.
66 For Firewall, check www http server (configuration of the firewall).
67 Create a user koha with the password kohakoha (eg)
68 The koha is therefore created and the group koha which this user belongs.
71 Enter root, then the password root.
73 With Fedora, GNOME is the default environment.
75 To use KDE default (as we at Lyon 2 have done), close the session,
76 having recovered the KDE packages on Add/Remove software. For the
77 french interface, go through the package manager and seek, then
80 On the login prompt, go to Options è Select Session and choose KDE. A
81 the next connection, the system will ask if you want to use KDE or
82 GNOME by default. Also on the login prompt, go to Languages and
85 The installation of Linux system is complete.
87 1.2 Verification of system settings
89 You must be logged in as administrator of the system (root).
91 -- Make sure the environment is KDE. The taskbar is at the
92 bottom of the screen and left of this bar is the menu K.
94 -- Check that the system is in french and click on K.
96 -- Create a few shortcuts in making a drag and drop the following
99 Menu K è è Internet Firefox Web Browser
100 Menu K è è Terminal System
101 Menu K è è Services System Management Services
103 -- Check that the koha and the group koha are created:
104 Menu K è è System Users and Groups
106 -- Check that web servers Apache and MySQL are installed.
107 Menu K è è Services System Management Services
109 The lines httpd (demon Apache) and mysqld (demon MySQL) must be
110 included in the line of services. You must configure these two
111 services so that they are lançés automatically at boot. Check th
112 e box to the left of the service, click the Start button at the
113 top of the list, if the two services start without any problem,
114 validate the change of manager services by clicking on Save or
115 File menu è save changes
117 Close the services manager.
119 If one or both services are absent, it is necessary to install Apache
120 and/or MySQL. To do so, go in the Package Manager, choose and
121 select Apache server and/or MySQL. In the case of MySQL, we must
122 not forget MySQL-devel (available in packages optional). Finally,
123 start the installation.
125 1.3 Installation of additional software
127 The software installation Koha requires adding additional programs
128 to your system linux based on a standard installation. This list may
129 be slightly different depending on the version and support (Live
132 List of software to add
139 Perl-ExtUtils-AutoInstall
146 git-1.5.3.7-1.fc8 [is not necessary for the installation of koha, but
147 useful if one participates in the development of koha.]
152 To add software Linux Fedora, you have two tools
155 Menu K è è System Add/Remove software
157 Click on the Search tab
158 Enter the name of the software in the zone entry and click the
161 The software that match your search are listed.
162 Make sure the check box is checked if the tick and click Apply to
163 add software to your system.
165 A tool mode Terminal YUM
166 The YUM documentation is available on the Fedora site
168 Open a terminal window (K Menu è è Terminal System)
170 Examples of using YUM:
171 Is the web browser Firefox installed?
172 Type the command: yum list firefox
173 This command will launch the software yum, and asked it to list
174 the information on the Firefox.
175 Yum visit the various deposits of software for Fedora (fedora,
176 updates, etc.). And said that the firefox software is installed
177 on this machine (version 2.0.0.3-4.fc7) and there is a
178 downloadable version newer ( version 2.0.0.10-2.fc7)
180 ************************************************** ****************
182 [root @ nomduserveur ~] # yum list firefox
183 Loading "installonlyn" plugin
184 fedora 100% |=========================| 2.1 kB 00:00
185 updates 100% |=========================| 2.3 kB 00:00
187 firefox.i386 2.0.0.3-4.fc7 installed
189 firefox.i386 2.0.0.10-2.fc7 updates
190 ************************************************** ****************
192 Updated software firefox by the command yum update firefox.
193 YUM inspect the system to check whether it is necessary to update
194 other software used by firefox.
195 confirm your request y
197 Installation of new software by the command yum install firefox.
201 Check whether these programs are installed using the command rpm
202 with option-q followed by the name of the software, possibly separated
205 rpm-q libxml2-devel libxslt-devel tcl bzip2-devel gcc mysql-devel-perl CPAN perl-ExtUtils-AutoInstall ncftp wget gdbm devel-expat-devel tcp_wrappers-devel
207 NB: The tool rpm (Redhat Package Manager) allows facilities
208 management software under the Linux distribution Fedora.
210 Special case: the library libicu under Fedora 8
212 The library libicu, is standard in the distribution Fedora.
213 Version 3.8 of this library installed with Fedora 8 is too recent
214 and poses a problem when installing software and ZEBRA YAZ, the
215 company Indexdata who compiled these two programs with version 3.6
216 of the library, it is therefore necessary to remove the libicu 3.8
217 library and replace it with version 3.6.
219 Uninstall the library libicu - 3.8-1.fc8
221 With the web browser, download the library libicu-3.6-18.fc7.i386.rpm
222 (old version, choose the version Fedora 7 for i386) here:
224 HYPERLINK "http://rpmfind.net/linux/rpm2html/search.php?query=libicutu.so.36" http://rpmfind.net/linux/rpm2html/search.php?query=libicutu.so.36
226 Download the package rpm
227 Open a terminal window, a menu K> System> Terminal
228 find the file libicu-3.6-18.fc7.i386.rpm
232 decompress the archive with the command: rpm-ivh libicu-3.6-18.fc7.i386.rpm
234 Setting 1.4 for the use of unicode
237 UNICODE must be set up correctly before installing Koha.
239 1.4.1 The Linux system is it configured to use UNICODE?
241 For more information:
242 HYPERLINK "http://wiki.koha-community.org/wiki/Encoding_and_Character_Sets_in_Koha" http://wiki.koha-community.org/wiki/Encoding_and_Character_Sets_in_Koha
244 To check, open a terminal window and type the locale.
249 1.4.2 The web server Apache 2 is it configured to use UNICODE?
251 To verify, using a text editor, open the httpd.conf file located
252 in /etc/httpd/conf and look if it contains the directive:
254 AddDefaultCharset UTF-8
256 1.4.3 The MySQL server is it configured to use UNICODE?
258 NB: mysqld service must be started.
259 In a Terminal window, type the command mysql, then an SQL
260 to display variables content server configuration.
263 show where variable_name variables like 'char%';
265 ******************************************************************
267 mysql> show where variable_name variables like 'char%';
268 +--------------------------+----------------------------+
269 | Variable_name | Value |
270 +--------------------------+----------------------------+
271 | Character_set_client | latin1 |
272 | Character_set_connection | latin1 |
273 | Character_set_database | latin1 |
274 | Character_set_filesystem | Binary |
275 | Character_set_results | latin1 |
276 | Character_set_server | latin1 |
277 | Character_set_system | utf8 |
278 | Character_sets_dir | /usr/share/mysql/charsets/ |
279 +--------------------------+----------------------------+
280 8 rows in set (0.00 sec)
281 ******************************************************************
283 Some variables are not properly configured (latin1), so we have to
284 change the configuration file server MySQL.
285 Leaving the mysql client by the command quit.
287 Using a text editor, open the file my.cnf located in the directory /
288 etc and add these 3 lines in the section [mysqld]:
290 default-character-set = utf8
291 character-set-server = utf8
292 skip-character-set-client-handshake
294 To ensure that this change is taken into account, restart the server
295 Mysql using the following command in a terminal window:
296 mysqld restart service
298 Check that changing the parameters was taken into account by reconnecting
299 the MySQL server with the command mysql, then typing the query:
301 show where variable_name variables like 'char%';
302 The variables contain well utf8 /
303 Quit MySQL by the command quit
305 ******************************************************************
308 Welcome to the MySQL monitor. Commands end with; or \g.
309 Your MySQL connection id is 2
310 Server version: 5.0.45 Source distribution
312 Type 'help,' or '\h' for help. Type '\c' to clear the buffer.
314 mysql> show where variable_name variables like 'char%';
315 +--------------------------+----------------------------+
316 | Variable_name | Value |
317 +--------------------------+----------------------------+
318 | Character_set_client | utf8 |
319 | Character_set_connection | utf8 |
320 | Character_set_database | utf8 |
321 | Character_set_filesystem | Binary |
322 | Character_set_results | utf8 |
323 | Character_set_server | utf8 |
324 | Character_set_system | utf8 |
325 | Character_sets_dir | /usr/share/mysql/charsets/ |
326 +--------------------------+----------------------------+
327 8 rows in set (0.00 sec)
331 ******************************************************************
333 Some information for the use of MySQL here: HYPERLINK "http://doc.ubuntu-fr.org/mysql" http://doc.ubuntu-fr.org/mysql
335 2 INSTALLATION OF ZEBRA SERVER INDEXING
337 For libraries that must manage several tens of thousands of bib records
338 it is recommended that you install the server indexing ZEBRA. Otherwise
339 (far fewer records to manage), it is not necessary to install ZEBRA.
341 The software installation ZEBRA requires prior installation of software
342 modules YAZ client and server Z3950.
344 The installation is as administrator (root).
346 NB: the creation of files yaz and zebra is only necessary if you use
349 Website for downloads: HYPERLINK "http://www.indexdata.dk/software/" http://www.indexdata.dk/software/
352 2.1 Installation of the software YAZ
354 Creating a file needed for the installation of Yaz
355 Create files redhat in the directory /usr/src
356 SOURCES Create a folder in the directory /usr/src/redhat
357 NB: redhat lowercase and uppercase SOURCES.
359 Installing Yaz by the command:
360 rpm-ivh ftp://ftp.indexdata.dk/pub/yaz/redhat/fc6/ *- 3.0.24 *.*. rpm
361 Check the final published version and replace -3.0.24 by the number
362 of the current version.
364 Check the installation by the command:
365 rpm-q libyaz3 libyaz3-devel yaz yaz-debuginfo yaz-icu-yaz illclient yaz-3.0.24-1.src
368 2.2 Installation of the software ZEBRA
370 To install packages from the version 2.0.26-1:
371 rpm-ivh ftp://ftp.indexdata.dk/pub/zebra/redhat/fc6/ *- 2.0.26-1 .*. rpm
372 Check dernère published version and replace -2.0.26-1 by the
373 number of the current version.
375 Check the installation by the command:
376 rpm-q libidzebra-2.0-2.0-libidzebra modules idzebra-2.0 idzebra-2.0-debuginfo libidzebra-2.0-devel idzebra-2.0
378 3 INSTALLATION OF KOHA 3.0
381 Make sure, BEFORE you install koha, that the system Linux, the MySQL
382 server and the Apache server are configured to use the Unicode
386 Download koha here: HYPERLINK "http://download.koha-community.org/koha-3.00.00-beta2.tar.gz" http://download.koha-community.org/koha-3.00.00-beta2.tar.gz
388 3.1 Decompression of the archive koha 3.0
390 Save the file in the directory /usr/share.
391 Opening a window Terminal, and placing himself in the directory /usr/share by the command:
393 verify the presence of compressed file koha by the command:
395 Unzip the file with the command tar:
396 tar-xvf koha-3.00.00-beta2.tar.gz
397 You get a folder koha-3.00.00-beta2, which contains folders and files needed for the installation of software koha.
399 NB: the installation procedure is described in the text files "INSTALL"
400 and "INSTALL debian", the second is more complete.
403 3.2 Protect access to the database server MySQL
405 Update the password root server MySQL (by default, unprotected access to databases)
406 In a Terminal window:
407 sudo password mysqladmin Koha
409 3.3 Creation of a database MySQL test
411 The basic test is immediately under Fedora. We must remove the existing basic
412 test and then create a basic test MySQL provisional, which will be deleted
413 after installing koha.
416 Enter password: kohakoha (eg)
418 mysql> drop test database;
419 Query OK, 0 rows affected (0.06 sec)
421 mysql> create database test;
422 Query OK, 1 row affected (0.00 sec)
424 mysql> grant all on test .* to 'test' @ 'localhost' identified by 'test';
425 Query OK, 0 rows affected (0.00 sec)
427 MySQL> flush privileges;
428 Query OK, 0 rows affected (0.00 sec)
434 3.4 Creation of the MySQL database koha
436 Creation of the database, a user kohaadmin with password and defining its
439 In a Terminal window:
441 Enter password: type kohakoha (eg a password for root)
442 Create Database Koha;
443 grant all on koha .* to 'kohaadmin' @ 'localhost' identified by 'kohakoha';
447 3.5 Configuration CPAN
449 The koha software is written in Perl. You have access to deposits modules
450 written in perl (CPAN) to download some libraries on your system. The Perl
451 language of origin is installed on most Linux distributions, but some modules
453 During the first use of cpan, you must configure.
455 Open a terminal window and type the command cpan
457 During the installation of modules, validate the additions of modules when
458 necessary. Indicate the continent and the country. Select 3 or 4 CPAN deposits
459 in the proposed list.
461 It is possible to force the installation of a module. In this case, in a
462 Terminal window, type:
465 then force install NomDuModule
468 ******************************************************************
470 /usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.
473 CPAN is the world-wide archive of perl resources. It consists of about
474 100 sites that all replicate the same contents all around the globe.
475 Many countries have at least one CPAN site already. The resources
476 found on CPAN are easily accessible with the CPAN.pm module. If you
477 want to use CPAN.pm, you have to configure it properly.
479 If you do not want to enter a dialog now, you can answer 'no' to this
480 question and I'll try to autoconfigure. (Note: you can revisit this
481 dialog anytime later by typing 'o conf init' at the cpan prompt.)
483 Are you ready for manual configuration? [yes]
486 The following questions are intended to help you with the
487 configuration. The CPAN module needs a directory of its own to cache
488 important index files and maybe keep a temporary mirror of CPAN files.
489 This may be a site-wide directory or a personal directory.
493 First of all, I'd like to create this directory. Where?
495 CPAN build and cache directory? [/ root/.cpan]
498 If you want, I can keep the source files after a build in the cpan
499 Home directory. If you choose so then future builds will take the
500 files from there. If you do not want to keep them, answer to the 0
505 How big should the disk cache be for keeping the build directories
506 with all the intermediate files?
508 Cache size for build directory (in MB)? [10]
511 By default, each time the CPAN module is started, scanning cache
512 is performed to keep the cache size in sync. To prevent from this,
513 disable the cache scanning with 'never'.
515 Perform cache scanning (atstart or never)? [atstart]
518 To considerably speed up the initial CPAN shell startup, it is
519 Storable possible to use to create a cache of metadata. If Storable
520 is not available, the normal index mechanism will be used.
522 Cache metadata (yes/no)? [yes]
525 The next option deals with the charset your terminal supports. In
526 general CPAN is English speaking territory, thus the charset does not
527 matter much, but some of the aliens out there who upload their
528 software to CPAN bear names that are outside the ASCII range. If your
529 terminal supports UTF-8, you say no to the next question, if it
530 supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it
531 neither supports nor, your answer does not matter, you will not be
532 able to read the names of some authors anyway. If you answer no, names
533 will be output in UTF-8.
534 Your terminal expects iso-8859-1 (yes/no) [yes]
536 If you have one of the readline packages (Term: ReadLine: Perl,
537 Term: ReadLine: Gnu, possibly others) installed, the interactive CPAN
538 Shell will have history support. The next two questions deal with the
539 filename of the history file and with its size. If you do not want to
540 set this variable, please hit SPACE RETURN to the following question.
542 File to save your history? [/root/.cpan/histfile]
543 Number of lines to save? [100]
546 The CPAN module can detect when a module that which you are trying to
547 build depends on prerequisites. If this happens, it can build the
548 prerequisites for you automatically ('follow'), ask you for
549 confirmation ('ask'), or just ignore them ('ignore'). Please set your
550 policy to one of the three values.
552 Policy on building prerequisites (follow, ask or ignore)? [ask]
555 The CPAN module will need a few external programs to work properly.
556 Please correct me, if I guess the wrong path for a program. Do not
557 panic if you do not have some of them, just press ENTER for those. To
558 disable the use of a download program, you can type a space followed
562 Where is your gzip program? [/bin/gzip]
563 Where is your tar program? [/bin/tar]
564 Where is your unzip program? [/usr/bin/unzip]
565 Where is your make program? [/usr/bin/make]
566 Where is your links program? [/usr/bin/links]
567 Where is your wget program? [/usr/bin/wget]
568 Where is your ncftpget program? [/usr/bin/ncftpget]
569 Where is your ftp program? [/usr/bin/ftp]
570 Where is your gpg program? [/usr/bin/gpg]
571 What is your favorite pager program? [/usr/bin/less]
572 What is your favorite shell? [/bin/bash]
575 Every Makefile.PL is run by perl in a separate process. Likewise we
576 run 'make' and 'make install' in processes. If you have any
577 parameters (eg PREFIX, LIB, UNINST or the like) you want to pass
578 to the calls, please specify them here.
580 If you do not understand this question, just press ENTER.
582 Parameters for the 'perl Makefile.PL' command?
583 Typical frequently used settings:
585 PREFIX = ~/perl non-root users (please see manual for more hints)
588 Every Makefile.PL is run by perl in a separate process. Likewise we
589 run 'make' and 'make install' in processes. If you have any
590 parameters (eg PREFIX, LIB, UNINST or the like) you want to pass
591 to the calls, please specify them here.
593 If you do not understand this question, just press ENTER.
595 Parameters for the 'perl Makefile.PL' command?
596 Typical frequently used settings:
598 PREFIX = ~/perl non-root users (please see manual for more hints)
601 Parameters for the 'make' command?
602 Typical frequently used setting:
604 J3 dual-processor system
607 Parameters for the 'make install' command?
608 Typical frequently used setting:
610 UNINST = 1 to always uninstall potentially conflicting files
615 Sometimes you may wish to leave the processes run by CPAN alone
616 without caring about them. As sometimes contains the Makefile.PL
617 question you're expected to answer, you can set a timer that will
618 kill a 'perl Makefile.PL' process after the specified time in seconds.
620 If you set this value to 0, these processes will wait forever. This is
621 the default and recommended setting.
624 Timeout for inactivity during Makefile.PL? [0]
627 If you're accessing the net via proxies, you can specify them in the
628 CPAN configuration or via environment variables. The variable in
629 the $ CPAN:: Config takes precedence.
634 You have no/root/.cpan/sources/MIRRORED.BY
635 I'm trying to fetch one
636 CPAN: LWP:: UserAgent loaded ok
638 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
640 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz
641 Fetching with Net: FTP:
642 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
645 Now we need to know where your favorite CPAN sites are located. Push
646 a few sites onto the array (just in case the first on the array will not
647 work). If you are mirroring CPAN to your local workstation, specify a
650 First, pick a nearby continent and country (you can pick several of
651 each, separated by spaces, or none if you just want to keep your
652 existing selections). Then, you will be presented with a list of URLs
653 CPAN of mirrors in the countries you selected, along with previously
654 selected URLs. Select some of those URLs, or just keep the old list.
655 Finally, you will be prompted for any extra URLs - file:, ftp:, or
656 http:-- that host a CPAN mirror.
665 Select your continent (or several nearby continents) [] 4
666 Sorry! since you do not have any existing picks, you must make a
667 Geographic selection.
671 (3) Bosnia and Herzegovina
685 15 more items, hit SPACE RETURN to show them
686 Select your country (or several nearby countries) [] 9
687 Sorry! since you do not have any existing picks, you must make a
688 Geographic selection.
690 (1) ftp://cpan.cict.fr/pub/CPAN/
691 (2) ftp://cpan.mirrors.easynet.fr/pub/ftp.cpan.org/
692 (3) ftp://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/cpan/
693 (4) ftp://ftp.crihan.fr/mirrors/ftp.cpan.org/
694 (5) ftp://ftp.erasme.org/pub/CPAN/
695 (6) ftp://ftp.inria.fr/pub/CPAN/
696 (7) ftp://ftp.oleane.net/pub/CPAN/
697 (8) ftp://ftp.pasteur.fr/pub/computing/CPAN/
698 (9) ftp://ftp.u-strasbg.fr/CPAN
699 (10) ftp://mir1.ovh.net/ftp.cpan.org
700 (11) ftp://miroir-francais.fr/pub/cpan/
701 (12) http://cpan.ebsd.net/
702 (13) http://cpan.enstimac.fr/
703 (14) http://cpan.univ-paris.com
704 Select URLs as many as you like (by number),
705 put them on one line, separated by blanks, e.g. '1 4 5 [] 1 2 4 10
707 Enter another URL or RETURN to quit: []
709 ftp://cpan.cict.fr/pub/CPAN/
710 ftp://cpan.mirrors.easynet.fr/pub/ftp.cpan.org/
711 ftp://ftp.crihan.fr/mirrors/ftp.cpan.org/
712 ftp://mir1.ovh.net/ftp.cpan.org
715 commit: wrote /usr/lib/perl5/5.8.8/CPAN/Config.pm
716 Terminal does not support AddHistory.
718 cpan shell - CPAN exploration and modules installation (v1.7602)
719 ReadLine support available (try 'install Bundle: CPAN')
722 ************************************************** ****************
724 Type quit to break cpan
728 3.6 Installation of additional modules from CPAN
730 3.6.1 modules installation
732 Install Command: cpan NomDuModule to install and validate the default
733 choice for each question.
735 List of modules required to koha need to install:
742 MARC::Charset::Constants
744 MARC::Crosswalk::DublinCore
750 DateTime::Format::ICal
752 Algorithm::CheckDigits::M43_001
776 3.6.2 Installation of modules - Cases difficult
778 In some cases, we must force the installation of modules. The two
779 modules (and sometimes others) need to force the installation.
780 Type the command cpan, then:
782 force install Mail: Sendmail ======= force install ok For this unit
783 should be Ctrl + C, when he attempted to send an e-mail.
784 force install Net:: LDAP ======= force install ok
788 3.6.3 Installing module access MySQL DBMS
790 Installation of the connector DBD::mysql for perl
792 We will have to rebuild this module because koha requires the latest version.
794 In a window Terminal:
796 cpan> o conf makepl_arg
797 (search parameters for the CPAN)
799 cpan> o conf makepl_arg "- testdb = test - testuser = test - testpass = test"
801 cpan> install DBD:: mysql
803 cpan> o conf makepl_arg''
804 (clean to avoid interference with future installations modules).
809 Destruction of the basis of test MySQL
813 Enter password: kohakoha
820 In a Terminal window, go to the installation directory koha.
821 CD /usr/share/koha-3.00.00-alpha/misc
822 launch the script sax_parser_print.pl
823 ./sax_parser_print.pl
824 which returns: XML::LibXML::SAX = HASH (0x895a3fc)
826 The file /usr/lib/perl5/site_perl/5.8.8/XML/SAX/ParserDetails.ini should be amended to
827 contain the final (save the other lines to comment or delete):
828 [XML::LibXML::SAX::Parser]
829 Http://xml.org/sax/features/namespaces = 1
832 3.8 Installation of Koha
834 Opening a window Terminal and placed in the directory koha
835 CD /usr/share/koha-3.00.00-alpha
836 launch the script Makefile.PL
839 Most options are to be validated by default. The data to information are
840 password based koha, format Marc (Marc21 or Unimarc), language indexing
841 Zebra (or en). It should be noted that the three ports will be open:
844 ************************************************** ****************
846 By default, Koha can be installed in one of three ways:
848 Standard: Install files in conformance with the Filesystem
849 Hierarchy Standard (FHS). This is the default mode
850 and should be used when installing a production
851 Koha system. On Unix systems, root access is
852 needed to complete a standard installation.
854 single: Install files under a single directory. This option
855 is useful for installing Koha without root access, eg,
856 on a web host that allows CGI scripts and MySQL databases
857 but requires the user to keep all files under the user's
860 dev: Create a set of symbolic links and configuration files to
861 Koha allow to run directly from the source distribution.
862 This mode is useful for developers who want to run
863 Koha from a git clone.
865 Installation mode (dev, single, standard) [standard]
867 Please specify the directory under which most Koha files
870 Note that if you are planning in installing more than
871 one instance of Koha, you may want to modify the last
872 component of the directory path, which will be used
873 as the package name in the FHS layout.
875 Base installation directory [/usr/share/koha]
877 Since you are using the 'standard' install
878 mode, you should run 'make install' as root.
879 However, it is recommended that a non-root
880 user (on Unix and Linux platforms) have
881 ownership of Koha's files, including the
882 Zebra indexes if applicable.
884 Please specify a user account. This
885 user account does not need to exist
886 right now, but it needs to exist
887 before you run 'make install'. Please
888 note that for security reasons, this
889 user should not be the same as the user
890 account Apache runs under.
894 Please specify the group that should own
895 Koha's files. As above, this group need
896 not exist right now, but should be created
897 before you run 'make install'.
901 Please specify which database engine you will use
902 to store data in Koha. The choices are MySQL and
903 PostgreSQL; please note that at the moment
904 PostgreSQL support is highly experimental.
906 DBMS to use (Pg, mysql) [mysql]
908 Please specify the name or address of your
909 database server. Note that the database
910 does not have to exist at this point, it
911 can be created after running 'make install'
912 and before you try using Koha for the first time.
914 Database server [localhost]
916 Please specify the port used to connect to the
919 Please specify the name of the database to be
922 Please specify the user that owns the database to be
923 used by Koha [kohaadmin]
925 Please specify the password of the user that owns the
926 database to be used by Koha [katikoan] kohakoha
928 Koha can use the Zebra search engine for high-performance
929 searching of bibliographic and authority records. If you
930 have installed the Zebra software and would like to use it,
931 please answer 'yes' to the following question. Otherwise,
932 Koha will default to using its internal search engine.
934 Please note that if you choose *NOT* to install Zebra,
935 koha-conf.xml will still contain some references to Zebra
936 settings. Those references will be ignored by Koha.
939 Install the Zebra configuration files? (no, yes) [yes]
941 Since you've chosen to use Zebra with Koha,
942 you must specify the primary MARC format of the
943 records to be indexed by Zebra.
945 Koha provides Zebra configuration files for MARC 21
948 MARC format for Zebra indexing (marc21, unimarc) [marc21] unimarc
950 Koha supplies Zebra configuration files tuned for
951 searching either English (en) or French (fr) MARC
955 Primary language for Zebra indexing (en, fr) [en] fr
957 Please specify Zebra database user [kohauser]
959 Please specify the Zebra database password [zebrastripes]
961 Since you've chosen to use Zebra, you can enable the SRU/
962 Z39.50 Server if you so choose, but you must specify a
963 few configuration options for it.
965 Please note that if you choose *NOT* to configure SRU,
966 koha-conf.xml will still contain some references to SRU
967 settings. Those references will be ignored by Koha.
970 Install the SRU configuration files? (no, yes) [yes]
972 SRU Database host? [localhost]
974 SRU port for bibliographic data? [9998]
976 SRU port for authority data? [9999]
981 Koha will be installed with the following configuration parameters:
989 INSTALL_BASE /usr/share/koha
990 INSTALL_MODE standard
996 ZEBRA_MARC_FORMAT unimarc
997 ZEBRA_PASS zebrastripes
998 ZEBRA_SRU_AUTHORITIES_POR9999
999 ZEBRA_SRU_BIBLIOS_PORT 9998
1000 ZEBRA_SRU_HOST localhost
1003 and in the following directories:
1005 DOC_DIR /usr/share/koha/doc
1006 INTRANET_CGI_DIR /usr/share/koha/intranet/cgi-bin
1007 INTRANET_TMPL_DIR /usr/share/koha/intranet/htdocs/intranet-tmpl
1008 INTRANET_WWW_DIR /usr/share/koha/intranet/htdocs
1009 KOHA_CONF_DIR /etc/koha
1010 LOG_DIR /var/log/koha
1011 MAN_DIR /usr/share/koha/man
1012 MISC_DIR /usr/share/koha/misc
1013 OPAC_CGI_DIR /usr/share/koha/opac/cgi-bin
1014 OPAC_TMPL_DIR /usr/share/koha/opac/htdocs/opac-tmpl
1015 OPAC_WWW_DIR /usr/share/koha/opac/htdocs
1016 PERL_MODULE_DIR /usr/share/koha/lib
1017 SCRIPT_DIR /usr/share/koha/bin
1018 ZEBRA_CONF_DIR /etc/koha/zebradb
1019 ZEBRA_DATA_DIR /var/lib/koha/zebradb
1020 ZEBRA_LOCK_DIR /var/lock/koha/zebradb
1021 ZEBRA_RUN_DIR /var/run/koha/zebradb
1024 To change any configuration setting, please run
1025 perl Makefile.PL again. To override one of the target
1026 directories, you can do so on the command line like this:
1028 perl Makefile.PL PERL_MODULE_DIR=/usr/share/perl/5.8
1030 You can also set different default values for parameters
1031 or override directory locations by using environment variables.
1035 export DB_USER=my_koha
1040 DB_USER=my_koha DOC_DIR=/usr/local/info perl Makefile.PL
1042 Checking if your kit is complete...
1044 Writing Makefile for koha
1045 ************************************************** ****************
1047 Taper la commande make
1049 Taper la commande make test (ne pas tenir compte des erreurs listées)
1051 Taper la commande make install
1055 4 CONFIGURATION POST INSTALLATION
1057 .1 Saving environment variables
1059 As indicated at the end of the installation (see screen shot), we must add two environment variables:
1061 Entering the two lines below a window in Terminal:
1062 export KOHA_CONF=/etc/koha/koha-conf.xml
1063 export PERL5LIB=/usr/share/koha/lib
1065 Seizures of this event, both variables are recorded on a temporary basis. If these variables are definitely enr
1066 egistrées we must add these two lines in the file. bash_profile or. bashrc users root and koha.
1069 4.2 Creation of the database
1070 The base is not created. It is a bug, we must launch a script to recreate it. In a Terminal window, type:
1071 mysql -user=kohaadmin -password=kohakoha koha </usr/share/koha-3.00.00-alpha/installer/data/mysql/kohastructure.sql;
1074 mysql è launches client mysql
1075 -- user = kohaadmin è behalf of the user base
1076 -- password = kohakoha è password for this user
1077 koha è the name of the database
1078 <È means setting the result of a script (here, the base koha)
1079 /usr/share/koha-3.00.00-alpha/installer/data/mysql/kohastructure.sql è address sql script to execute
1080 Do not forget the sign at the end of the investigation.
1082 To check if the base is well rebuilt: mysql-u-p kohaadmin
1083 Enter password: kohakoha
1086 ******************************************************************
1088 Welcome to the MySQL monitor. Commands end with; or \g.
1089 Your MySQL connection id is 51
1090 Server version: 5.0.45 Source distribution
1092 Type 'help,' or '\h' for help. Type '\c' to clear the buffer.
1095 Reading table information for completion of table and column names
1096 You can turn off this feature to get a quicker startup with A -
1100 +----------------------------+
1102 +----------------------------+
1111 | aqorderbreakdown |
1115 | auth_subfield_structure |
1116 | auth_tag_structure |
1118 | authorised_values |
1120 | biblio_framework |
1123 | branchcategories |
1130 | class_sort_rules |
1134 | deletedbiblioitems |
1135 | deletedborrowers |
1141 | import_record_matches |
1149 | labels_templates |
1150 | language_descriptions |
1151 | language_rfc4646_to_iso639 |
1152 | language_script_bidi |
1153 | language_script_mapping |
1154 | language_subtag_registry |
1157 | marc_subfield_structure |
1158 | marc_tag_structure |
1160 | matcher_matchpoints |
1161 | matchpoint_component_norms |
1162 | matchpoint_components |
1169 | repeatable_holidays |
1170 | reports_dictionary |
1171 | reserveconstraints |
1178 | services_throttle |
1180 | special_holidays |
1184 | subscriptionhistory |
1185 | subscriptionroutinglist |
1187 | systempreferences |
1190 | virtualshelfcontents |
1194 +----------------------------+
1195 94 rows in set (0.00 sec)
1198 ******************************************************************
1200 4.3 Changing the configuration of the Apache server
1202 Create a link koha in the directory /etc/httpd/conf.d/ pointing to the configuration file of koha for apache.
1203 Open /etc/koha/koha-httpd.conf and paste the contents of this file at the end of /etc/httpd/conf/httpd.conf
1205 Editing httpd.conf located in the directory /etc/httpd/conf, so the Apache web server is reachable on port 8
1206 0 (standard) and also on port 8080.
1207 Find string Listen 80 and add a new line below with the string Listen 8080
1208 Restarting the service httpd. On a Terminal window, type service httpd restart.
1211 zebrasrv east /usr/bin
1212 with the name zebrasrv-2.0
1213 go to the directory /usr/bin
1215 koha become user by typing the command su:
1217 zebra start the server by the command:
1218 ./zebrasrv-2.0-f /etc/koha/koha-conf.xml
1220 Starting the daemon Zebraqueue
1221 zebraqueue_daemon.pl is in /usr/share/koha/bin
1222 go in /usr/share/koha/bin
1223 cd /usr/share/koha/bin
1224 and launch the script zebraqueue_daemon.pl
1225 . /zebraqueue_daemon.pl
1228 4.4 loading data for tests
1230 This step helps to have some input in Koha for testing purposes (table cataloguing default, etc.).
1232 Disable temporarily SElinux
1233 SE-LINUX blocking access to KOHA.
1234 Menu K Hotel è è SElinux
1235 Then turn off Selinux and relaunch the service iptables
1238 It must grant access to ports 3306, 9998 and 9999
1239 Menu K Hotel è è Firewall and SElinux
1240 Other ports and click Add button.
1241 When the 3 ports are added, click Apply, then click the button.
1243 Using the Web installer
1244 We must move the fr located in /usr/share/koha/intranet/cgi-bin/data/mysql en-US (installer points to the directory
1247 Connect to Koha: HYPERLINK "http://localhost:8080/" http://localhost:8080 and use the Web installer french (en-US).
1249 -- Validate Step 1 (dependencies);
1250 -- Step 2 (settings of the database on two screens);
1251 -- A Phase 3, click on Install the basic settings (screen 1), select the declination Marc (Unimarc_complet in our
1252 Where Unimarc_lecture_pub; screen 2), select default settings and then click on Import (only settings obligat
1253 oires are checked by default; screen 3);
1254 -- The screen 4 summarizes what has been imported, while low demand to opt for a configuration Zebra (our choice) or NoZebra;
1255 -- Finally, the screen 5 indicates the end of the installation; then you just have to click Finish.
1258 Connect to PhPMyadmin: HYPERLINK "http://localhost/phpmyadmin" http://localhost/phpmyadmin
1259 Connect to interface professional Koha: HYPERLINK "http://localhost:8080/" http://localhost:8080
1260 Connect to online catalogue Koha: HYPERLINK "http://localhost:80/" http://localhost:80
1262 Zebra is in /etc/koha
1263 The files perl Koha professional can be found in /usr/share/koha/intranet/cgi-bin (then a large repertoire by fonctionnal
1265 The files perl Koha public are in /usr/share/koha/koha/cgi-bin