[go: up one dir, main page]

0% found this document useful (0 votes)
174 views5 pages

Install Koha

The document provides instructions for installing Koha, an open source library management system, on a Debian Linux server. It describes downloading and configuring Debian, installing Koha and its dependencies from source, setting up the Koha database with MySQL, configuring Apache web server, and enabling background processes for Zebra indexing.

Uploaded by

awansn1984
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views5 pages

Install Koha

The document provides instructions for installing Koha, an open source library management system, on a Debian Linux server. It describes downloading and configuring Debian, installing Koha and its dependencies from source, setting up the Koha database with MySQL, configuring Apache web server, and enabling background processes for Zebra indexing.

Uploaded by

awansn1984
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Instalasi Koha pada Debian Lenny

Install Debian Linux 1. Download file ISO di http://lutung.library.ums.ac.id/debian-iso/50/debian-505-i386netinst.iso 2. Bakar file ISO yang sudah didownload 3. Boot server dari CD 4. Lakukan instalasi Install Koha 1. Lengkapi server dengan repositori Edit file /etc/apt/source.list
# sudo pico /etc/apt/source.list

Masukkan baris berikut


deb http://lutung.library.ac.id/debian lenny main non-free contrib deb http://lutung.library.ac.id/debian-volatile lenny/volatile main contrib deb http://lutung.library.ac.id/debian-security lenny/updates main non-free contrib deb http://lutung.library.ums.ac.id/indexdata/debian lenny main

Update sourcelist dengan perintah

# wget http://lutung.library.ums.ac.id/mirrorkeyring/indexdata.asc # apt-key add indexdata.asc # apt-get update

Jika terdapat error GPG key saat update repositori, berikan perintah berikut
# aptitude install debian-archive-keyring

lalu update sekali lagi Tambahkan file pendukung supaya bias diremote
#apt-get install sudo openssh-server

2. Download source koha yang terbaru di http://koha-community.org/


$ wget http://download.koha-community.org/koha-3.02.07.tar.gz

Ekstrak file source koha


$ tar -zxvf koha-3.02.07.tar.gz

3. Install file dependensi untuk debian


koha@core2duo:~/koha-3.2.7/install_misc$ sudo ./apt-get-debian-lenny.sh

Tekan Y kemudian Enter 4. Install file dependensi Perl


$ sudo cpan

Tekan enter samapai selesai


cpan[1]> quit

Edit file Config.pm Cari baris

$ sudo pico /etc/perl/CPAN/Config.pm

'urllist' => [],

Ganti dengan

'urllist' => [q[http://lutung.library.ums.ac.id/cpan/]], $ sudo cpan Algorithm::CheckDigits SMS::Send HTTP::OAI IPC::Cmd::Memoize::Memcached PDF::API2::Simple PDF::Table Storable Test::More::Locale::Currency::Format DateTime Lingua::Stem::Snowball Text::CSV::Encoded::UNIVERSAL::require YAML Authen::CAS::Client

5. Tes SAX Parser


koha@core2duo:~/koha-3.2.7/misc$ ./sax_parser_print.pl Koha wants something like: XML::LibXML::SAX::Parser=HASH(0x81fe220) You have: XML::SAX::Expat=HASH(0x8226f60) Looks bad, check INSTALL.* documentation.

Edit file /etc/perl/XML/SAX/ParserDetails.ini Kemudian pindah baris


[XML::LibXML::SAX::Parser] http://xml.org/sax/features/namespaces = 1

letakkan paling bawah sendiri, tes lagi


koha@core2duo:~/koha-3.2.7/misc$ ./sax_parser_print.pl Koha wants something like: XML::LibXML::SAX::Parser=HASH(0x81fe220) You have: XML::LibXML::SAX::Parser=HASH(0x8226fc0) Looks good.

6. Masuk ke direktori koha


koha@core2duo:~/koha-3.2.7$ perl Makefile.PL unable to locate Koha configuration file koha-conf.xml at /home/koha/koha-3.2.7/C4/Context.pm line 307. By default, Koha can be installed in one of three ways: standard: Install files in conformance with the Filesystem Hierarchy Standard (FHS). This is the default mode and should be used when installing a production Koha system. On Unix systems, root access is needed to complete a standard installation. single: Install files under a single directory. This option is useful for installing Koha without root access, e.g., on a web host that allows CGI scripts and MySQL databases but requires the user to keep all files under the user's HOME directory. Create a set of symbolic links and configuration files to allow Koha to run directly from the source distribution. This mode is useful for developers who want to run Koha from a git clone. Installation mode (dev, single, standard) [standard] dev

dev:

File-file konfigurasi akan diletakkan di:


Configuration directory: [/home/koha/koha-dev]

Catat semua hal yang berhubungan dengan user dan password dari masing-masing servis Ternyata masih ada beberapa error
Warning: prerequisite Business::ISBN 2.05 not found. We have 2.0301. Warning: prerequisite Graphics::Magick 1.3.5 not found. We have 1.1.11. Warning: prerequisite IPC::Cmd 0.46 not found. We have 0.401. Warning: prerequisite Locale::Currency::Format 1.28 not found. Warning: prerequisite Memoize::Memcached 0.03 not found. Warning: prerequisite Text::CSV::Encoded 0.09 not found. Warning: prerequisite UNIVERSAL::require 0.13 not found. Writing Makefile for koha

Tambahkan dengan perintah berikut


$ sudo cpan Business::ISBN

Sampai selesai kecuali Graphics::Magick 1.3.5 Install manual untuk Graphics::Magick

$ tar zxvf GraphicsMagick-1.3.12.tar.gz $ cd GraphicsMagick-1.3.12 $ cd PerlMagick $ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Graphics::Magick $ cd .. $ make $ make test $ sudo make install

7. Memulai instalasi koha


$ perl Makefile.PL $ make $ make test sudo make install Koha's files have now been installed. In order to use Koha's command-line batch jobs, you should set the following environment variables: export KOHA_CONF=/home/koha/koha-dev/etc/koha-conf.xml export PERL5LIB=/home/koha/koha-3.2.7 $ sudo make install

8. Buat database untuk koha

koha@core2duo:~$ mysqladmin -uroot -pwarlord create koha koha@core2duo:~$ mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 30 Server version: 5.0.51a-24+lenny5 (Debian) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> grant all on koha.* to 'kohabase'@'localhost' identified by 'kohabase'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye

9. Mengkonfigurasi Apache

$ sudo ln -s /home/koha/koha-dev/etc/koha-httpd.conf /etc/apache2/sitesavailable/koha

edit file /etc/apache2/sites-available/koha ganti 127.0.0.1 dengan tanda asterix (*) tambahkan baris ini pada file berikut /etc/apache2/ports.conf:
Listen 80 Listen 8080

Jalankan perintah dibawah ini

$ sudo a2enmod rewrite Enabling module rewrite. Run '/etc/init.d/apache2 restart' to activate new configuration! $ sudo a2ensite koha Enabling site koha. Run '/etc/init.d/apache2 reload' to activate new configuration! $ sudo apache2ctl restart

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

10. Buka browser, alamatkan ke http://ip_server:8080

11. Mengkonfigure Zebra

koha@core2duo:~$ sudo -u koha zebrasrv -f /home/koha/koha-dev/etc/kohaconf.xml 17:41:45-21/04 [fatal] lock file /home/koha/kohadev/var/lock/zebradb/biblios/zebrasrv.pid [Permission denied]

Atasi error di atas dengan mengubah hak milik file kepada user koha
$ sudo chown koha:koha -R koha-dev

12. Membuat daemon untuk Zebra

$ sudo ln -s /home/koha/koha-dev/bin/koha-zebra-ctl.sh /etc/init.d/kohazebra-daemon $ sudo update-rc.d koha-zebra-daemon defaults

13. Zebra Indexer dengan crontab Sudah disediakan contoh di koha-3.2.7/misc/cronjobs (bagian source code koha), hanya perlu dirubah bebrapa path karena kita menggunakan mode dev untuk installasi tadi.

You might also like