Modify Apache default port 80

  
under CentOS 5.5

Open /etc/httpd/conf/httpd.conf file

Modify two places #Listen 12.34.56.78:80 Listen 80

# Put 80 changed to the port you set, I set the port to 5555

Listen 5555

NameVirtualHost *:80 #Change 80 to the port you set, I set the port to 5555 NameVirtualHost *:5555

Save changes and exit.

semanage port -a -t http_port_t -p tcp 5555 #Enter this command If httpd will fail to start.

/etc/rc.d/init.d/httpd start #Start httpd

Copyright © Windows knowledge All Rights Reserved