Jump to content
xisto Community
Sign in to follow this  
SamiFX

Apache Default Port How to change it?

Recommended Posts

I need help to know how to change the port number of Apache server which is I think Port:80, note that I'm using XAMPP Control Panel.and thanks in advance :lol:

Share this post


Link to post
Share on other sites

I don't know how to do it with XAMPP control panel, but I do know how to do it the old fashioned way :lol:

If you are on windows, open C:\Program Files\Apache Software Foundation\Apache2.2\conf and look for a file called httpd.conf. In that file, find the following section (line 53):

## Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80


Simply change the number after the word Listen to the port you want it to use. Save the file and restart Apache. Be aware though that you will have to reconfigure any firewalls and routers to forward requests to your new port. Also, some people may have problems accessing your website if it is not on port 80 or the alternative 8080.

Share this post


Link to post
Share on other sites

A faster way to get to the httpd.conf file is if you are using Windows, go to

Start-> All Programs-> Apache HTTP Server 2.2.x-> Configure Apache Server-> Edit the httpd.conf Configuration File.

I believe that is faster. And thanks I always wondered how to do that.

Share this post


Link to post
Share on other sites

When you change the port number from 80 (the default) to 8080, in order to access your website, you would have to include the port number in the address, for instance: LOCALHOST:8080/

Share this post


Link to post
Share on other sites
Thanks:D - how to change the default apache portApache Default Port

Thanks for the tips :D

Ive been searchin for this for a long time...

Share this post


Link to post
Share on other sites

I need help to know how to change the port number of Apache server which is I think Port:80, note that I'm using XAMPP Control Panel.
and thanks in advance :P



You have 2 files to change, one for the HTTP port 80 and another for the HTTPS port 443 so look for the configuration directive that starts with the keyword "Listen". The configuration files to look at are:
* C:\xampp\apache\conf\httpd.conf (Look for "Listen 80")
* C:\xampp\apache\conf\extra\httpd-ssl.conf (Look for "Listen 443")

Regards,
Nitin

Share this post


Link to post
Share on other sites
how to change the portApache Default PortI have tried all the ways, written above.But I found the same message.(Apache2 is used by(inetinfo.Exe)Please help-reply by rachi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.