sudo apt-get update sudo apt-get upgrade -y sudo apt-get install apache2 -y sudo apt-get install postfix sudo apt-get install libsasl2-2 sudo apt-get install libsasl2-modules sudo apt-get install ca-certificates echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add - sudo apt-get update sudo apt-get install koha-common -y sudo sed -i 's/INTRAPORT="80"/INTRAPORT="8080"/' /etc/koha/koha-sites.conf sudo apt-get install mariadb* -y sudo systemctl enable --now mariadb sudo service mariadb start sudo a2enmod rewrite sudo a2enmod cgi sudo service apache2 restart sudo koha-create --create-db library sudo chmod 777 /etc/apache2/ports.conf sudo echo "Listen 8080" >> /etc/apache2/ports.conf sudo chmod -R 777 /usr/share/koha sudo chmod 777 -R /etc/koha sudo chmod 777 -R /etc/apache2/sites-enabled/library.conf sudo chmod 777 /etc/network/interfaces sudo a2dissite 000-default sudo a2enmod deflate sudo a2ensite library sudo service apache2 restart sudo service memcached restart firefox http://127.0.0.1:8080