This guide explains how to modify the Apache port in WHM. Modifying the Apache port in WHM may be necessary for security reasons, to resolve port conflicts, or to comply with specific network configurations, enhancing the server’s performance and functionality.
Follow the steps:
- Log in to WHM.
- Go to Server Configuration and click Tweak Settings.

- Select the “System” tab.

- Find the field “Apache non-SSL IP/port”. Keep the IP address as it is and change only the port number after the colon.
Example: 0.0.0.0:8080 - Find the field “Apache SSL port”. Keep the IP address as it is and change only the port number after the colon.
Example: 0.0.0.0:8443

- Scroll to the page’s bottom, and click the “Save” button.

Important notes:
– Make sure the new port is open in your server firewall. Otherwise, your websites will not be reachable.
– After the change, visitors will need to add the port to the web address (for example, http://yourdomain.com:8080), unless a proxy or redirect is set up.
– Do not use a port that is already used by another service.
That is it! If you have any questions about this article, contact our support team. For resolving unexpected Apache shutdown errors, refer to our Knowledge Base (KB)- https://www.eukhost.com/kb/how-to-fix-the-unexpected-apache-shutdown-error/