1 – edit the source list
nano /etc/apt/sources.list
add this
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free
2- Update the repository,
apt-get update
3- Install sudo
apt-get install sudo
4- system Update
sudo apt-get update
sudo apt-get upgrade
5- optionally install Leafpad
apt-get install leafpad
6- Add Koha community repository
echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
wget -q -O- https://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
Update the software repository
sudo apt-get update
7- Install Koha
sudo apt-get install koha-common
8- Server configuration
9 -Install MySQL server
Assign Root password for MySQL
Koha instance creation
sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart
sudo koha-create –create-db library
Add new port
Restart Apache,
sudo service apache2 restart
Enable modules and sites
sudo a2dissite 000-default
sudo a2enmod deflate
sudo a2ensite library
sudo service apache2 restart