Port number problem?? [RESOLVED]
Posted by: Dan Boy (---.nhs.uk)
Date: January 23, 2013 03:53PM

OK, I know this topic is all over the internet but I cannot find a solution that works. I have a Windows Server 2003 running IIS on port 80. I just want WAMP server to use a different port but it won't install the Apache service unless port 80 is free.

I think this is the key, how do I tell WAMP server to install the Apache service on a different port or even better is it possible to install the service manually?

Cheers Dan.



Edited 1 time(s). Last edit at 01/24/2013 12:17PM by Dan Boy.

Options: ReplyQuote
Re: Port number problem??
Posted by: RiggsFolly (---.as13285.net)
Date: January 23, 2013 04:10PM

Its not a case of installing the service on a port, all you need to do is tell Apache to Listen to a specific port other than 80.

using the wampmanager icon and its menus in your system tray do the following:-

left click the wampmanager icon -> Apache -> httpd.conf

This will open the correct config file for you in notepad

Search for 'Listen'

Change the port number, which is currently set to 80 to any other number you want, that is not being used by another application.

Stay about port number 1024 as these lower numbers tend to be assigned to specific protocols.

Options: ReplyQuote
Re: Port number problem??
Posted by: Dan Boy (---.nhs.uk)
Date: January 23, 2013 04:53PM

Hi, thanks for your reply. I did that and changed the Listen line from 80 to 1024 but when I go to install the apache service through WAMP Server it still complains about port 80 being used and won't install it.

Cheers Dan.

Options: ReplyQuote
Re: Port number problem??
Posted by: stevenmartin99 (Moderator)
Date: January 23, 2013 04:57PM

no, that cant be right, the service installs regardless of the port issue.

open services.msc to confirm that wampapache is listed


get teamviewer if you like and ill take a look?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Port number problem??
Posted by: RiggsFolly (---.as13285.net)
Date: January 23, 2013 05:01PM

When you installed WAMP it should have installed the service 'wampapache' you dont need to install it again.

Just restart the Apache service and it should pick up the new port number. If it does not and still complains about port 80 then you changed the wrong file.

Please use the wampmanager menus to open httpd.conf so you edit the correct file.
left click the wampmanager icon -> Apache -> httpd.conf

Options: ReplyQuote
Re: Port number problem??
Posted by: Dan Boy (---.nhs.uk)
Date: January 24, 2013 11:03AM

Thanks for the replies.

OK, I checked the services and the service is there wampapache but it is not started, I tried to start it and it would not. I checked the event viewer and it is complaining about a line in the httpd.conf file at ling 233.

Line 233 states:-

Allow from all:1024

This is the new port number I have assigned.

What can I try next?

Thanks Daniel.

Options: ReplyQuote
Re: Port number problem??
Posted by: Dan Boy (---.nhs.uk)
Date: January 24, 2013 12:17PM

Fixed it, that line shouldn't have a port number after it!

Thanks for all your help, by changing that line the service could be started and everything works.

BRILLIANT!!!!!

Cheers Dan.

Options: ReplyQuote


Sorry, only registered users may post in this forum.