How to change default port number of Koha

If we want to install other applications like Dspace, we need to change default port numbers of Koha. 
Default port number for Staff client is 8080 and OPAC is 80.

Open a Applications > Accessories > Terminal and add new port numbers in following file,

sudo leafpad /etc/apache2/ports.conf

We have to add new ports for Koha. Port 8000 for Koha staff client and port number 8001 for OPAC.
Add following lines in the file,

Listen 8000
Listen 8001

Save and close the file.

Change port numbers in Apache configuration files for Koha instance,

sudo leafpad /etc/apache2/sites-enabled/library.conf

Add new port numbers.

Save and close the file.

Restart Apache,

sudo service apache2 restart

1 comment: