Jump to content

IIS 7.5 Port Change


Irate
Go to solution Solved by kicken,

Recommended Posts

So, basically, I have configured IIS via Command Prompt and everything's working fine, now I have downloaded WAMPP and Apache throws me - rightfully - an error that it cannot be started because 'server' is already listening to Port 80.

 

How do I change the port IIS is listening to via Command Line? I want to experiment with both IIS and Apache, so I'm asking. Thanks in advance.

P.S.: A method to change the port Apache is listening to is also welcome.

Link to comment
Share on other sites

  • Solution

For apache you edit the httpd.conf file and change the Listen 80 line. Change 80 to be whatever new port you want, save, then restart apache.

 

I've no idea how you edit the IIS port via the command line, but if you use the administration GUI you'd just edit the bindings in the site configuration.

Link to comment
Share on other sites

Hmmm...

 

I changed Listen 80 to Listen 127.0.0.1:8080 but when I try to start Apache from my XAMPP Control Panel, this is the warning I receive before even starting...

 

 

17:42:25  [main]  Initializing Control Panel
17:42:25  [main]  Windows Version: Windows 7 Home Premium SP1 64-bit
17:42:25  [main]  XAMPP Version: 1.8.1
17:42:25  [main]  Control Panel Version: 3.1.0 3.1.0 [ Compiled: September 20th 2012 ]
17:42:25  [main]  Running with Administrator rights - good!
17:42:25  [main]  XAMPP Installation Directory: "c:\php\xampp\"
17:42:26  [main]  Checking for prerequisites
17:42:26  [main]  All prerequisites found
17:42:26  [main]  Initializing Modules
17:42:26  [Apache]  Problem detected!
17:42:26  [Apache]  Port 80 in use by "system"!
17:42:26  [Apache]  Apache WILL NOT start without the configured ports free!
17:42:26  [Apache]  You need to uninstall/disable/reconfigure the blocking application
17:42:26  [Apache]  or reconfigure Apache to listen on a different port
17:42:26  [Apache]  Problem detected!
17:42:26  [Apache]  Port 443 in use by "c:\program files (x86)\skype\phone\skype.exe"!
17:42:26  [Apache]  Apache WILL NOT start without the configured ports free!
17:42:26  [Apache]  You need to uninstall/disable/reconfigure the blocking application
17:42:26  [Apache]  or reconfigure Apache to listen on a different port
17:42:26  [main]  Starting Check-Timer
17:42:26  [main]  Control Panel Ready
17:42:29  [Apache]  Attempting to start Apache app...
17:42:30  [Apache]  Status change detected: running
17:42:31  [Apache]  Status change detected: stopped
17:42:31  [Apache]  Error: Apache shutdown unexpectedly.
17:42:31  [Apache]  This may be due to a blocked port, missing dependencies, 
17:42:31  [Apache]  improper privileges, a crash, or a shutdown by another method.
17:42:31  [Apache]  Check the "/xampp/apache/logs/error.log" file
17:42:31  [Apache]  and the Windows Event Viewer for more clues
Link to comment
Share on other sites

It look like whatever you did to try and change the port was unsuccessful. Perhaps the wrong config file or the change was not save properly. You'll also need to either disable the SSL port (443) or change it to something else.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.