How to Install Koha on Ubuntu 24.04 LTS | Install Koha on Ubuntu (with easy steps)
By Technical DigitYou can easily install Koha on Ubuntu Operating system using below process. In this process we will install latest stable version of Koha on Ubuntu.
Open Terminal in your Ubuntu machine for Koha Installation.
Update Ubuntu OS using below commands:
sudo suapt-get update
apt-get upgradeInstall Leafpad Text Editor
apt-get install leafpadInstall MariaDB Server: We will use MariaDB server for Koha Database. Execute following commands one by one to Install MariaDB Server.
sudo apt install mariadb-server mariadb-client -ySecure MariaDB server using following command:
sudo mysql_secure_installationsudo echo deb http://debian.koha-community.org/koha oldstable main | sudo tee /etc/apt/sources.list.d/koha.listsudo wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -Update Software Repository
apt-get updateInstall Koha Software
sudo apt install koha-common -yPort Configuration: Open following file to change port number.
sudo gedit /etc/koha/koha-sites.confINTRAPORT=”8099″
Apply the following commands to enable rewrite & cgi
sudo a2enmod rewrite cgi && sudo systemctl restart apache2Create a Koha instance with the name ‘library’.
sudo koha-create --create-db libraryWe have assigned 8099 port for the Koha staff client and 80 for OPAC.
Open the following file and add a new port.
sudo gedit /etc/apache2/ports.confAdd following line below Listen 80
Listen 8099
Run following command to enable vhost & restart apache server.
sudo a2dissite 000-default && sudo a2enmod deflate && sudo a2ensite librarysudo systemctl restart apache2Run the following command to install “Locale::Language” perl module.
sudo apt install liblocale-codes-perlRun following Command to locate Koha default master password
sudo xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/library/koha-conf.xml;echoRestart memcached server:
sudo systemctl restart memcachedEnable & Start Plack for Koha Performance Improvement (Only enable it if you have sufficient RAM):
sudo koha-plack --enable library && sudo koha-plack --start libraryNow open web-browser and go to following links to setup Koha Web Installer.
http://127.0.1.1:80 (Online OPAC)
When you access Koha Staff Client for first time, It will ask you to setup your Koha Configuration in various steps. So please follow on screen instructions and create a library and a super librarian account to complete the Installation Process. Good Luck.
Koha Software Installation has been completed.
NOTE:
If you see ‘perl modules missing’ error, then execute following command to install missing dependencies.
sudo perl -MCPAN -e 'install Bundle::KohaSupport'Reference
https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
Post navigation
4 thoughts on “How to Install Koha on Ubuntu 24.04 LTS | Install Koha on Ubuntu (with easy steps)”
Comments are closed.
apt-get install leafpad is not working
Which Operating System are you using?
How to fix this error
“Software error:
DBIx::Class::Storage::DBI::catch {…} (): DBI Connection failed: Access denied for user ‘koha_library’@’localhost’ (using password: YES) at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1520. at /usr/share/koha/lib/Koha/Database.pm line 116
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. “
Check MariaDB Database service, Is it running or not?