Instalasi Koha pada Debian Lenny
Install Debian Linux 1. Download file ISO di [Link] 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/[Link]
# sudo pico /etc/apt/[Link]
Masukkan baris berikut
deb [Link] lenny main non-free contrib deb [Link] lenny/volatile main contrib deb [Link] lenny/updates main non-free contrib deb [Link] lenny main
Update sourcelist dengan perintah
# wget [Link] # apt-key add [Link] # 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 [Link]
$ wget [Link]
Ekstrak file source koha
$ tar -zxvf [Link]
3. Install file dependensi untuk debian
koha@core2duo:~/koha-3.2.7/install_misc$ sudo ./[Link]
Tekan Y kemudian Enter 4. Install file dependensi Perl
$ sudo cpan
Tekan enter samapai selesai
cpan[1]> quit
Edit file [Link] Cari baris
$ sudo pico /etc/perl/CPAN/[Link]
'urllist' => [],
Ganti dengan
'urllist' => [q[[Link] $ 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/[Link] Kemudian pindah baris
[XML::LibXML::SAX::Parser] [Link] = 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 [Link] unable to locate Koha configuration file [Link] at /home/koha/koha-3.2.7/C4/[Link] 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 [Link] $ cd GraphicsMagick-1.3.12 $ cd PerlMagick $ perl [Link] 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 [Link] $ 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/[Link] 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/[Link] /etc/apache2/sitesavailable/koha
edit file /etc/apache2/sites-available/koha ganti [Link] dengan tanda asterix (*) tambahkan baris ini pada file berikut /etc/apache2/[Link]:
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 [Link] for ServerName
10. Buka browser, alamatkan ke [Link]
11. Mengkonfigure Zebra
koha@core2duo:~$ sudo -u koha zebrasrv -f /home/koha/koha-dev/etc/[Link] 17:41:45-21/04 [fatal] lock file /home/koha/kohadev/var/lock/zebradb/biblios/[Link] [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/[Link] /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.