Steps to change the default port number for Apache HTTP Server

We all know that as default the Apache HTTP Server will ping to port number 80 . What we have to do when a situation of changing this post number comes? Lets see some simple steps for this…

1. Assume that your new port number is 78

2. cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backupgedit /etc/httpd/ports.conf

3. Find this line- Listen 80

4. Replace with the following line - Listen 78

5. Save the edited file

6. /etc/init.d/httpd restartApache HTTP server, Linux


Technorati : ,

2 Responses to “Steps to change the default port number for Apache HTTP Server”


  1. 1 pradeep November 8, 2007 at 9:26 am

    Hi
    This is pradeep and i am having problm with the apache server .i am not able to start it ..whenever i try to start it,i get the reply as server busy….

  2. 2 Lijin November 8, 2007 at 9:55 am

    Hi Pradeep,

    Plz check any instance is already running on ur machine. :)

Leave a Reply




View Lijin Joseji's profile on LinkedIn

Disclaimer

The information on this site is for informational purposes only. The use of any Trademark or Copyrighted material is not intended to infringe Copyright. This blog is intended to be used under a policy of personal and non commercial use.

Adds

Add to Google

Blog Stats

  • 127,025 hits

Categories