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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby purackal » 24. January 2012 12:10

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
purackal
 
Posts: 3
Joined: 24. January 2012 05:58
Operating System: Windows 2003 standerd 64 bit

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

Postby Sharley » 24. January 2012 12:17

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?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

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

Postby purackal » 26. January 2012 15:13

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
purackal
 
Posts: 3
Joined: 24. January 2012 05:58
Operating System: Windows 2003 standerd 64 bit

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

Postby JonB » 26. January 2012 18:58

Did you change the Listen Directive?

just asking...

I guess I need new reading glasses :shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby hackattack142 » 26. January 2012 23:24

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
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 703
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

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

Postby purackal » 27. January 2012 20:26

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.
purackal
 
Posts: 3
Joined: 24. January 2012 05:58
Operating System: Windows 2003 standerd 64 bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests