Koha installation on ubuntu 14.04 minimal openVZ vps

# apt-get install dialog
# apt-get install apt-utils memcached
# apt-get install --reinstall bsdutils
# apt-get install apache2
# a2dismod mpm_event
# a2enmod mpm_prefork
# service apache2 restart
# apt-get install libapache2-mpm-itk
# echo deb http://debian.koha-community.org/koha stable main | tee /etc/apt/sources.list.d/koha.list
# wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add -
# apt-get update
# apt-get upgrade
# apt-get clean
# apt-get install koha-common
# vim /etc/koha/koha-sites.conf (Set your domain and koha-admin port 8080)
DOMAIN=".myDNSname.org"
INTRAPORT="80"                          # use 8080 for an IP-based install.

# apt-get install mariadb-server (set root password when asked)
# a2enmod rewrite
# a2enmod cgi
# service apache2 restart
# koha-create --create-db library  (will create a koha instance named library. Set dns and mail name when asked in dialog)
# vim /etc/apache2/ports.conf
add a line for port 8080
Listen 80
Listen 8080
save and exit. veryfy bellow modules enable
# a2enmod deflate
# a2ensite library
# service apache2 restart
Verify ports are ok for mysql-3306 kohadmin-8080 and apache-80
# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      12840/mysqld
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      13508/memcached
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      518/sshd
tcp6       0      0 :::8080                 :::*                    LISTEN      14218/apache2
tcp6       0      0 :::80                   :::*                    LISTEN      14218/apache2
tcp6       0      0 :::22                   :::*                    LISTEN      518/sshd

Now library accessible on
http://<ip address/domain name>
http://<ip address/domain name>:8080

To know your admin user's (koha_library) password use this command
xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/library/koha-conf.xml

This is done!

Comments

Popular posts from this blog

using libguestfs virt-customize tool to modify qcow2 image and reset root password.

Running cockpit behind nginx reverse proxy with nginx ssl and cockpit non ssl

setting up openshift alert manager mail alerting based on critical and warning