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.

Add new ports to Apache
Open a Applications > Accessories > Terminal and add new port numbers in the following file,

sudo mousepad /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 the following lines in the file,

Listen 8000
Listen 8001

Disable the port unwanted port number by putting a # in front of the line.
e.g. #Listen 8080

Save and close the file.

Change port numbers in Apache configuration files for Koha instance,

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

Add new port numbers.

Save and close the file.

Restart Apache,

sudo service apache2 restart

1 comment: