How do I change Apache Port Number in WHM ?
Apache is the most widely used web server software. Apache is an open source software available for free.
By default, Apache uses port 80 and secure port 443. You can change the port through WHM.
Kindly follow the below procedure to change the Apache port number.
- Log into the WHM as root
- Go to “Tweak Settings” under Server Configuration option
- Go to “System” Option
Apache non-SSL IP/port : 0.0.0.0:80 default
Note : The port (e.g. 80) on which Apache listens for HTTP connections. An IP address may precede the port number, separated by a colon (“:”). Specifying a specific IP will prevent Apache from listening on all other IPs.
Apache SSL port : 0.0.0.0:443 default
Note : The port (e.g. 443) on which Apache listens for HTTPS connections. An IP address may precede the port number, separated by a colon (“:”). Specifying a specific IP will prevent Apache from listening on all other IPs.
In system menu, we can change both Apache and SSL port number. By default, the port number will be 80 and 443 respectively. You can select the radio button under the default port to change the port number. Now you can change the port number.
5. Click on ‘Save’ button to make the changes.
>> Next Open the new port in server firewall.
- Home >> Plugins >> ConfigServer Security & Firewall
- Go to Firewall Configuration
Allow incoming TCP ports
TCP_IN =
Allow outgoing TCP ports
TCP_OUT =
- Click On Save Change
- Restart csf.
That’s it. Apache Port number has been changed!!