• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache port change

C

corn_planter

Guest
What do I need to change to make apache run on port 2468?

thanks:D
 
First make sure the port is not blocked by your firewall. Then edit the /etc/httpd/conf/httpd.conf file. Look for the line 'Listen 80', then add an additional line under it 'Listen 2468'.

If you wanted to have apache listen only on the new port, and NOT listen on port 80, then you would just change the existing '80' to '2468'.

Once done editing (use a linux editor, not a windows editor), then save the file, and restart apache

/etc/init.d/httpd restart

or

service httpd restart
 
Thanks,
Do I need to make any other changes in order for plesk to work with the port change?
 
Please clarify. Did you want the normal 'hosting' apache to respond on that port, or are you trying to get the Plesk Control Panel to respond on that port (which is a different matter). ????

All you asked was to get apache on that port, which would imply the hosting apache since you did not specify the control panel apache....
 
Well, I want to change apaches port to 2468, but I thought there might be something I need to also change in Plesk so that Plesk still works with apache. I though Plesk might think that apache is still on port 80. So is there any Plesk config files or anything that I need to change to make sure it runs with the apache port change?
 
Back
Top