LiteSpeed WebServer is a high-performance alternative to Apache, offering better speed, scalability, and security.

In some cases, you may want to change the port on which LiteSpeed runs, for example:

  • To run LiteSpeed alongside Apache on the same server.
  • To troubleshoot port conflicts.
  • For custom network configurations.

This is done by adjusting the Port Offset setting in WHM.

Step 1: Log in to WHM

Step 2: Access the LiteSpeed WebServer Plugin

Click on LiteSpeed WebServer under the Plugins section.

Step 3: Open the Change Port Offset Option

Inside the LiteSpeed WebServer plugin page, click Change Port Offset.

Note: Port Offset allows you to run Apache and LiteSpeed in parallelly on a single server by running LiteSpeed on a separate port.

Step 4: Set the New Port Offset

If you set the port offset to 2000, you can run LiteSpeed on port 2080.

Port Offset allows LiteSpeed to run on a different port while Apache continues running on its default ports. This is useful for testing LiteSpeed before fully replacing Apache.

Example:
Default HTTP port for Apache: 80
Port Offset: 2000
LiteSpeed will run on: 80 + 2000 = 2080

Step 6: Restart LiteSpeed Web Server

After changing the port offset, restart LiteSpeed so the changes take effect. You can do this from the same plugin page by clicking Restart LiteSpeed.

Conclusion:

You have successfully changed the LiteSpeed WebServer port in cPanel/WHM by modifying the Port Offset setting. This feature is especially useful if you: Want to test LiteSpeed before fully replacing Apache, need to avoid port conflicts with other services, or Plan to run Apache and LiteSpeed simultaneously for staging or migration purposes. Once you verify that LiteSpeed is running smoothly on the new port, you can decide whether to switch it to production mode and replace Apache entirely.

Was this answer helpful? 1 Users Found This Useful (1 Votes)