koha an installation roadmap zahoor ur rehman€¦ · user account [koha] 4. group [koha] 5. dbms...

36
KOHA AN INSTALLATION ROADMAP KOHA: AN INSTALLATION ROADMAP Zahoor ur Rehman Al Kh i i I tit t f C t Si Al-Khawarizmi Institute of Computer Science [email protected] 3 rd International Conference on Open Source Software (19-22 Dec 2009) University of Engineering & Technology Lahore Pakistan

Upload: others

Post on 12-Jun-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA AN INSTALLATION ROADMAPKOHA: AN INSTALLATION ROADMAP

Zahoor ur Rehman

Al Kh i i I tit t f C t S iAl-Khawarizmi Institute of Computer [email protected]

3rd International Conference on Open Source Software (19-22 Dec 2009)University of Engineering & Technology

Lahore Pakistan

Page 2: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

ILS DEFINED

Integrated Library SystemIntegrated Library System

o (Cataloging + Serials + Acquisitions +o (Cataloging + Serials + Acquisitions + Circulation)

o Emerged in the 1960’s – 1970’so Functionality has evolved and expanded, but y p ,

basic concepts and modules remain intact

Page 3: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

Legacy ILS Public User Interface:

FunctionalityVendor Based

Circulation Acquisitions

Functionalmodules:

ePurchasing

Cataloging Serials

modules:Vendor Based Metadata Enhancement

S ff I f

Data Stores:

Staff Interfaces:

Page 4: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

EVALUATING CRITERIA

Active current development under wayp yAt least the cataloging, circulation, patronaccess catalog modules, acquisitions andserials control should be available.serials control should be available.MARC supportCurrent source code and documentation

il blavailableCurrently in use in librariesScalabilityScalability

Page 5: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA MODULES

OPACCatalogingCirculationS i lSerialsAcquisitionPatron ManagementPatron ManagementBranch managementReservations

Page 6: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA FEATURES

Open-source Software (no license fee)Open-source Software.(no license fee).OS independence Web basedFull MARC21 and UNIMARC supportMultilingual and multi-user supportZ39.50 server.Z39.50 server.Customizable OPAC and circulation system.Online reservation.Ci l ti i iti lib t k tCirculation, acquisitions, library stock management.Serial management module. Export and import records facility.p p y

Page 7: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

USERS LIST

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then

ter may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

LMS UET-KICS

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Page 8: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

HOW DOES KOHA WORKS?

Perl Script

MySQL Database pDatabase

Server

Page 9: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA: INSTALLATION ROADMAP

Page 10: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

PRE-REQUISITES FOR KOHA INSTALLATION

Apache ServerpMySQLZebra ServerPERL Platform

Page 11: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

START APACHE SERVICES AND NETWORK

St t t k i d A h Start network services and Apache

[root@localhost ~]# /etc/init.d/network start

Apache configuration (for UTF-8) :

However,to verify, using a text editor, open the httpd.conf file located in /etc/httpd /conf and look if it contains the directive:

AddD f ltCh t UTF 8 AddDefaultCharset UTF-8

Page 12: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

MYSQL CONFIGURATIONS

Page 13: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

MYSQL CONFIGURATIONstart mysql service from terminal [root@localhost ~]# /etc/init d/mysqld start [root@localhost ]# /etc/init.d/mysqld start

Check the encoding variables of MySQLmysql> show variables like 'char%';mysql> show variables like char% ;

+--------------------------+----------------------------+ | Variable_name | Value | + + + +--------------------------+----------------------------+ | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_filesystem | binary| | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 |

Page 14: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

CREATE A BACKUP OF THE MYSQLCONFIGURATION FILE (MY.CNF)

Use any editor to add these 3 lines in the Use any editor to add these 3 lines in the

section [mysqld] of the my.cnf file:

default-character-set = utf8

character-set-server = utf8

skip-character-set-client-handshake

R M SQLRestart MySQL

|[root@localhost ~]# /etc/init.d/mysqld restart

Page 15: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

FINALIZING MYSQL CONFIGURATION

Create the Koha database Create the Koha database

mysql> create database koha;

Grant privileges to MySQL user

mysql> grant all on koha.* to 'kohaadmin'@'localhost' mysql grant all on koha. to kohaadmin @ localhost

identified by ‘test123';

l fl h i il mysql> flush privileges;

[root@localhost ~]# /etc/init.d/mysqld restart

Page 16: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

ZEBRA SERVER CONFIGURATION

Page 17: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

INSTALLATION OF ZEBRA SERVER

To install zebra download the current version from To install zebra download the current version from

http://ftp.indexdata.dk/pub/zebra/redhat/fc6/

Install as administrator (root)

Screen shotScreen shot[root@localhost Desktop]# rpm -ivh idzebra-2.0-2.0.32-

1.src.rpm 1:idzebra-2.0

Preparing... p g

##################################### [100%]

Page 18: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

PERL PLATFORM

Page 19: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

CPAN INITALIZATION FOR INSTALLING PERLPROGRAMS

[root@localhost ~]# cpan[root@localhost ]# cpan/usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.

R l F ll i Q ti A di lReply Following Questions Accordingly1. Are you ready for manual configuration? [yes]

2 Cache size for build directory (in MB)? [10] 2. Cache size for build directory (in MB)? [10]

3. Perform cache scanning (at start or never)? [at start]

4. Cache metadata (yes/no)? [yes]

5. File to save your history? [/root/.cpan/histfile]

6. Number of lines to save? [100]

7. Select your continent (or several nearby continents) [] 2

Page 20: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

EDIT PARSERDETAILS.INI FILE

#[XML::SAX::PurePerl]

#http://xml.org/sax/features/namespaces = 1

[XML::LibXML::SAX::Parser]

#[XML::LibXML::SAX]

#http://xml.org/sax/features/namespaces = 1

o [root@localhost misc]# ./sax_parser_print.pl

Koha wants something like:

XML::LibXML::SAX::Parser=HASH(0x81fe220)

You have: XML::LibXML::SAX::Parser=HASH(0x842d308) Looks good.

Page 21: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA INSTALLATION

Page 22: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

RUN KOHA'S PERL INSTALLER[root@localhost Koha]# perl Makefile.PL

1 Installation mode (dev, single, standard) [standard] 1. Installation mode (dev, single, standard) [standard] 2. Base installation directory [/usr/share/koha] 3. User account [koha] 4. Group [koha]5. DBMS to use (Pg, mysql) [mysql]

D t b [l lh t] 6. Database server [localhost] 7. Please specify the port used to connect to theDMBS [3306]8. Please specify the name of the database to be used by Koha [koha]9. Please specify the user that owns the database to be used by Koha [kohaadmin]10. Please specify the password of the user that owns the database to be used by Koha [katikoan] test12311. Install the Zebra configuration files? (no, yes) [yes] 12. MARC format for Zebra indexing (marc21, unimarc) [marc21]13. Primary language for Zebra indexing (en, fr) [en] 14. Authorities indexing mode (dom, grs1) [grs1] 15 Please specify Zebra database user [kohauser] kohaadmin15. Please specify Zebra database user [kohauser] kohaadmin16. Please specify the Zebra database password [zebrastripes] test12317. Install the SRU configuration files? (no, yes) [yes]18. SRU Database host? [localhost] 19. SRU port for bibliographic data? [9998]

SRU f h i d ? [9999] 20. SRU port for authority data? [9999] 21. Install the PazPar2 configuration files? [no] 22. Would you like to run the database-dependent test suite? (no, yes) [no]

Page 23: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA'S PERL INSTALLER

Run following commandsg[root@localhost Koha]# make[root@localhost Koha]# make test [root@localhost Koha]# make install[root@localhost Koha]# make install

Environment variables[root@localhost ~]# export KOHA_CONF=/etc/koha/koha-conf.xml [root@localhost ~]# export PERL5LIB=/usr/share/koha/lib

Editing the httpd.conf fileInsert following lineInsert following lineinclude /etc/koha/koha-httpd.conf

Page 24: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

EDITING THE KOHA-HTTPD.CONF FILE

Add Listen 8080

Intranet

<VirtualHost 127.0.0.1:8080> 192.168.1.178:8080

OPAC OPAC

<VirtualHost 127.0.0.1:80> 192.168.1.178:80

Restart Apache by /etc/init.d/httpd restart

Page 25: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

KOHA'S WEB INSTALLER

Access Koha's web installer. open your web browser and type Your IP …. {192.168.1.178:8080} and your browser will open koha web Installer

Page 26: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

TYPE YOUR USER NAME AND PASSWORD PRESS LOGINTYPE YOUR USER NAME AND PASSWORD PRESS LOGIN

Page 27: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

Click menu select your language and continue. I selected English (en)

Continue..

Page 28: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

Continue..

continue..... click next to create database

Page 29: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

database created press continue

Page 30: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

To continue click link “install basic configuration

Select your MARC flavor and press next continue

Page 31: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify
Page 32: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

select zebra or no-zebra for indexing and click choose button to continue . I choose zebra

Page 33: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

click the finish b tton to complete installationclick the finish button to complete installation

Page 34: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

Click link “here” to continue or it will redirect after few seconds. The k h l i f t ff li t illkoha login for staff client page will appear.

Page 35: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

Set system preference create import some records to test the Zebra indexing

Page 36: KOHA AN INSTALLATION ROADMAP Zahoor ur Rehman€¦ · User account [koha] 4. Group [koha] 5. DBMS to use (Pg, mysql) [mysql] 6. Dtb [Database server [llhtlocalhost] 7. Please specify

THANK YOUTHANK YOU