Apache is not working

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

Apache is not working

Postby Hirex » 20. July 2011 16:52

Hello,

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 :
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4

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

Any help will be appreciated.
Many many thanks in advance.
Chris
Hirex
 
Posts: 5
Joined: 20. July 2011 16:29

Re: Apache is not working

Postby Sharley » 21. July 2011 01:43

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:
http://arloh.de/xampp/xampp_control3.0.2.zip

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:
http://www.nirsoft.net/utils/cports.html

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. :)
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: Apache is not working

Postby Hirex » 21. July 2011 07:53

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.

Chris
Hirex
 
Posts: 5
Joined: 20. July 2011 16:29

Re: Apache is not working

Postby Hirex » 21. July 2011 07:59

Sharley,

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.
Chris
Hirex
 
Posts: 5
Joined: 20. July 2011 16:29

Re: Apache is not working

Postby Sharley » 21. July 2011 08:42

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:
viewtopic.php?p=182572#p182572

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.
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: Apache is not working

Postby Sharley » 21. July 2011 10:14

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.
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: Apache is not working

Postby Hirex » 21. July 2011 13:43

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 !

Chris
Hirex
 
Posts: 5
Joined: 20. July 2011 16:29

Re: Apache is not working

Postby engsamady » 01. October 2012 22:20

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
engsamady
 
Posts: 1
Joined: 01. October 2012 22:14
Operating System: windows server 2008 R2

Re: Apache is not working

Postby vrnair24 » 08. July 2013 04:21

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 www.Bitnami.com/antivirus. " 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.
vrnair24
 
Posts: 1
Joined: 08. July 2013 03:38
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 99 guests

cron