Steps to change the default port number for Apache HTTP Server

Add a comment February 28th, 2007

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

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 1% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

Related posts:

  1. Wink – A framework for RESTful web services from Apache Apache Wink 1.0 is a complete Java based solution for...

Related posts brought to you by Yet Another Related Posts Plugin.

  1. November 8th, 2007 at 09:26 | #1

    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. November 8th, 2007 at 09:55 | #2

    Hi Pradeep,

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

  3. August 7th, 2008 at 14:22 | #3

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

  4. January 30th, 2009 at 17:55 | #4

    “/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. February 11th, 2009 at 19:16 | #5
    Pascal Ramboz

    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. June 14th, 2009 at 01:13 | #6

    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

  1. No trackbacks yet.
Comments feed