Page 1 of 1

Apache is not working

PostPosted: 20. July 2011 16:52
by Hirex

My problem is very closed to Jstall problem posted on July 8th. I have created a new topic because it has not the same end :oops: .

I have a very strange problem with my Apache 2.2 working with Xampp 1.7.4 on Windows Server 2008 RC2.
Apache was working on port 81 (I have changed httpd.conf when installing it a few weeks ago) and it was working fine :D .

Everything was working fine, until the last Windows update.
After Server has rebooted and restarted, Apache service refused to start again.

Nothing appears in error.log.

When trying to start it with Xampp control panel, with "svc" checkbox on, nothing happens, just "Apache service started" in the logs, but it doesn't.
Without svc checkbox on, I'm getting "Running" for 1-2 seconds, and it disappears. But in the logs "Apache started [Port 80]" appears.

Thing is that I have not changed anything on the Apache port number.

I have run httpd -T and it returns the same as JStall :
"Only one usage of each socket address (protocol/network address/port) is normally permitted. :make_sock: could not bind to address 0.0.0.:443
Unable to open logs."

So I have run netstat -aon | findstr 0.0:80 and it returns :

What does it means ?
Why Xampp tells me that Apache works on Port 80 ?

Any help will be appreciated.
Many many thanks in advance.

Re: Apache is not working

PostPosted: 21. July 2011 01:43
by Sharley
Apache also looks to listen on port 443 and if it is being used by the Windows server or Skype or any other app. then Apache can't start and the error message seems to confirm that.

The message in your Control Panel is hard coded and can be ignored or you can download and extract the exe file only to your xampp install folder of the new Control Panel version 3 from here:

Now to find out what is using the ports that you need to get Apache started ie port 443 and BTW it is no good looking for port 443 in netstat when you are asking it to look for port 80.

Download this nice little portable app Curr Ports from here as it has some degree of control over the ports and will give accurate information about what is using ports and where to look for the file(s) responsible:

So until you find the culprit, which seems to have been implemented by your recent Windows update, and then disable it you will not be able to start Apache.

A quick work around if you don't intend to use SSL (https) then open the \xampp\apache\conf\httpd.conf file and down near the end of the file locate and comment out this line
Code: Select all
# Secure (SSL/TLS) connections
Include "conf/extra/httpd-ssl.conf"
So it looks like this
Code: Select all
# Secure (SSL/TLS) connections
# Include "conf/extra/httpd-ssl.conf"
Save the file and now try and start Apache.

If it starts and you don't need SSL then you can leave the edits in place but if you need SSL then you will have to follow the instructions above to find what is using port 443 and disable it.

Good luck. :)

Re: Apache is not working

PostPosted: 21. July 2011 07:53
by Hirex
Hi Sharley,

Firstable, many thanks for the new control panel. This new panel is very nice, I'm lovin' it !

I have put a "#" in the "Include "conf/extra/httpd-ssl.conf"" line of httpd.conf, and now Apache is starting ! Waoouuuwwww !

For port 443, I have installed and run CurrPorts but it doesn't give me more information than netstat.
So I wonder if we can changed Apache SSL port from 443 to another port like TCP port 80 to 81 ?
If no, I will not use SSL, and at least Apache will work.

Many thanks in advance and thanks again for your very quick response with a nice solution.


Re: Apache is not working

PostPosted: 21. July 2011 07:59
by Hirex

Just one more thing about the new control Panel.
On the Apache line, when selecting "Logs" button and "Access.log" menu, it runs me notepad with "Access.log" in it, that's fine.
But when I select "Logs" button and "Error.log" menu, it also open "Access.log". It seems that there is a bad link in the menu.

Hope this help.
Have a nice day.

Re: Apache is not working

PostPosted: 21. July 2011 08:42
by Sharley
Hello Chris,
Hirex wrote:So I wonder if we can changed Apache SSL port from 443 to another port
Yes you can. :D

Try port 4433 instead and change every instance of 443 to 4433 in the uncommented sections of the httpd-ssl.conf file - there should be only 3 to change.

Save the file and after uncommenting the line you first changed in the httpd.conf file, save it also and then restart Apache to have the changes read by the server.

I have reported the Logs button issue to Steffen Strueber, the developer of this version in this post here:

As you can see there have been a few teething troubles but Steffen is usually quick on the button to fix things up.

You can simply click on <Browse> to open the log folder and manually select the error.log file until there is a more permanent fix.

Perhaps you may wish to add your comments also to that topic.
Also keep your eye out for a response from Steffen as he usually posts an upgrade to download after fixing issues.
(You can subscribe to the topic so you get an email when ever there is a new post).

I am pleased you can at least get XAMPP working now. :)

Best wishes.

Re: Apache is not working

PostPosted: 21. July 2011 10:14
by Sharley
Chris, Steffen has fixed the log file issue in v3 of the Control Panel.

Just download from the link I gave above and extract and overwrite the exe file to use the modified version, it carries the current compile date of July 21 2011.

Good luck.

Re: Apache is not working

PostPosted: 21. July 2011 13:43
by Hirex
Thanks Sharley.

Everything is working fine now.
I have successfully changed Port 443 to Port 4433, and menu is ok in control panel.

Many thanks again to you and all the team for your work !


Re: Apache is not working

PostPosted: 01. October 2012 22:20
by engsamady
Thanks for every one on this forum;this topic really helped me
I was trying everything to get xampp appache to work but no success tel I read your repies .
I tried the lovely little program Curr Ports which showed me that I forgot Vmwhere which was using port 443 on my system ;so reconfiguring ports solved the problem

Re: Apache is not working

PostPosted: 08. July 2013 04:21
by vrnair24
Hi Good Morning Everyone,

Hi Sharley,
My name is Vinesh and I just installed Xampp 1.8.2 in my lappy. As I installed Xampp it showed me a warning that "You have antivirus installed and Apache will not work properly visit " After the installation was complete it showed another error that "Port 443 in use by "Unable to open process" with PID 3292".
After a long search I read these post between you and Hirex and I changed Port 443 to Port 4433 and now my Apache is working properly. but I want to know the reason behind this and also I got a warning that "Apache is trying to send data using httpd.conf " for the moment I have added it to the trusted mail client. Please tell me what is the problem here. I am a complete "NewBee" here.