Pr-Installation Setup

#apt-get install mysql-server apache2
#mysql -u root -p
>CREATE database koha;
>CREATE user 'kohaadmin'@'localhost' IDENTIFIED by '{koha user password}';
>GRANT ALL ON koha.* TO 'kohaadmin'@'localhost' IDENTIFIED BY '{koha user password}';

Add A Koha Community Repository

# wget -q -O- | sudo apt-key add -
#echo 'deb 17.05 main' | sudo tee /etc/apt/sources.list.d/koha.list
#echo 'deb 17.11 main' | sudo tee /etc/apt/sources.list.d/koha.list
#sudo apt-get update

Download the latest Koha release

Add ‘koha’ User

#adduser koha

Install Dependencies
Determine Build Directory

It may look like:

# ls
koha-16.05.11 koha-latest.tar.gz

Ubuntu Packages from Repository

#sudo apt-get install koha-deps koha-perldeps make

Ubuntu Packages for Perl Dependencies

#koha_dir ./ -m -u

Build, Test, and Install Koha

#sudo make
#make install

Configure and Start Apache

#sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha.conf

Tweak Koha Site File

The default file limits connections to those from (or, which is rather difficult to test/use in a server environment. Edit the file

#sudo vi /etc/apache2/sites-available/koha.conf

And change the two references from (or to *. The first match should to change should look like:

<VirtualHost *:80>

The second match to change should look like:

<VirtualHost *:8080>
#sudo /etc/init.d/apache2 restart

Setup Default Ports

# sudo vi /etc/apache2/ports.conf

Make sure both these Lines to the ports.conf file:

Listen 80
Listen 8080

Enable Modules and Site

# sudo a2enmod rewrite
# sudo a2enmod deflate
# sudo a2ensite koha.conf
# sudo /etc/init.d/apache2 restart

Setup Zebra Search

#sudo ln -s /usr/share/koha/bin/ /etc/init.d/koha-zebra-daemon
#sudo update-rc.d koha-zebra-daemon defaults
#sudo /etc/init.d/koha-zebra-daemon start

Configure Zebra Indexing

#sudo vi /etc/cron.d/koha


*/5 * * * * koha $KOHA_PATH/bin/migration_tools/ -b -a -z &> /dev/null

2018-02-13 00:00:00


this document is useful for librarian to install koha


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.