How to change the default port number in Koha

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

Add new ports to Apache

Open Terminal and add new port numbers in the following file,

sudo nano /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 to 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 nano /etc/apache2/sites-enabled/library.conf

Add new port numbers.

Save and close the file.

Restart Apache,

sudo service apache2 restart

You may also like...