General - Change Ports

The Uniform Server provides two ways of changing the ports used by the servers. Normally you should run the multi-server script. This automatically increments all the ports and renames the executables. However there are situations where you need to change individual server ports. This menu allows you to specify the Apache (standard and secure) and MySQL ports.

Change Apache and MySQL ports

UniController: Server Configuration > General > Change ports, Apache and MySQL

Change a Single port

  • Current port setting is displayed.
  • Change the port to required value.
  • Click the corresponding change button.

Change all ports

  • Change all ports to required values.
  • Click change all button.

Note : For new ports to become effective you must restart the servers.

Change Ports

Files modified

The Uniform Server scripts that use server ports will read them directly from the appropriate configuration file. The following files are updated when a port is changed:

Apache standard port

  • UniServer\usr\local\apache2\conf\httpd.conf
  • UniServer\usr\local\apache2\conf\extra\httpd-vhosts.conf

Apache ssl port

  • UniServer\usr\local\apache2\conf\extra\ssl.conf

MySQL standard port

  • UniServer\usr\local\mysql\my.ini
  • UniServer\usr\local\mysql\small_my.ini
  • UniServer\usr\local\mysql\medium_my.ini