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 : ,

7 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. :)

  3. 3 We3cares August 7, 2008 at 2:22 pm

    Please send a mail to us. We can do it for you.

  4. 4 Elleswara January 30, 2009 at 5:55 pm

    “/applications/tomcat/bin”>apachectl start
    (13)Permission denied: make_sock: could not bind to address [::]:78
    no listening sockets available, shutting down
    Unable to open logs

    I am inale to start the apche http server?? could you please help me out regardingthis.I changed the port numer from 80 to 78.

  5. 5 Pascal Ramboz February 11, 2009 at 7:16 pm

    Hi guys,

    if you have “permission denied”, it means your user is not allowed to perform such action.
    So login as a root or admin user and you should be able to start your apache http server properly.

  6. 6 Emily June 14, 2009 at 1:13 am

    Hi,

    How can I change the port of virtual dedicated server. I want my tomcat to listen on port 80 and not the apache(Apache server is not running), So I did change on my server.xml but still i cannot get to port 80 where my tomcat is , is there any restrictions imposed by the Hosting provider, which is Godaddy in my case.

    Thanks,
    Emily

  7. 7 Naim Hossain August 20, 2009 at 12:59 pm

    To the Admin of this site.

    I am novice to java networking. I got some helpful materials in this site but i could not save the html pages using Firefox 3.5.x.

    What might be the problem , plaese tell me.

    Thanks
    Naim


Leave a Reply




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.

Subscribe it

Subscribe

Blog Stats

  • 343,469 hits

Twitting

Adds

Add to Technorati Favorites
Subscribe in NewsGator Online Subscribe in Bloglines
 Add to My AOL
Subscribe in FeedLoungeAdd to netvibes
Add to The Free Dictionary
Subscribe in NewsAlloyAdd to Pageflakes

Feeds

RSS Daily Bible Verse

  • Psalm 119:18

 

February 2007
S M T W T F S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
25262728