Page 1 of 1

Why I can't change the port 80 of apache? [SOLVED]

PostPosted: 24. January 2012 12:10
by purackal
I had Stopped the XAMPP server. Open the file [XAMPP Installation Folder]/apache/conf/httpd.conf. Changed the string Listen 80 and changed the string “ServerName” and update the port number there as well. I saved and re-start XAMPP server. But still the port is showing 80. And its not getting started, coz of port.

My server is Windows 2003 Standard 64 bit.

Please help.

Thanks,
Purackal

Re: Why I can't change the port 80 of apache?

PostPosted: 24. January 2012 12:17
by Sharley
Hello Purackal.

The control panel you are using is hard coded to show port 80 but has now been replaced with a much better version.

You can now use the version 3 control panel found in the xampp installation folder:
xampp-control-3-beta.exe
Right click on it to select to run as an admin for best results.
Click on Exit in the older 2.5 version before starting this version 3 control panel.

The better and latest Control Panel Version3 download is linked in my signature.
Simply extract all the files from the archive to the xampp installation folder and overwrite when asked.
Then right click the exe file to run as administrator and to create a shortcut to the desktop, for example, for easier access.

Make sure that you have exited all other control panel versions before starting this latest version.

Remember when you change the port to 80 you also have to add that to every url you type in your browser, for example:
http://localhost:80/index.php

Why do you want to change the default Apache web server port from port 80?

Re: Why I can't change the port 80 of apache?

PostPosted: 26. January 2012 15:13
by purackal
Hi,
I tried as you explained. And i tried to change it from the configuration control panel as well. Still its taking port 80. On port 80 i have iis working. And i need port another port for my apache. Your advice is much appreciated.

Thanks, Jacob

Re: Why I can't change the port 80 of apache?

PostPosted: 26. January 2012 18:58
by JonB
Did you change the Listen Directive?

just asking...

I guess I need new reading glasses :shock:

Re: Why I can't change the port 80 of apache?

PostPosted: 26. January 2012 23:24
by hackattack142
First, a clarification:

Do you mean that when you start Apache, the control panel (Version 3.0.2 or 3.0.11) says that it still is using port 80 while it is running or that you cannot start Apache at all because the Control Panel says the port is in use.

Next, a recap. You did the following?

1. Verified that nothing else was listening on Port 443 (SSL)
2. Changed the 'Listen' directive in "/xampp/apache/config/httpd.conf" to something else
3. Upgraded and used the new XAMPP Control Panel Version 3.0.11 (xampp-control-3-beta10.exe)
4. Edited the port for Apache in the XAMPP Control Panel

Re: Why I can't change the port 80 of apache?

PostPosted: 27. January 2012 20:26
by purackal
Thank you hackattack142. When I changed the port Listening in httpd-ssl.conf, apache started working.
Thank you all for helping me to troubleshoot the port problem.