Apache will not start

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

Apache will not start

Postby bruceaj » 01. December 2013 14:19

I just installed XAMPP Version 1.8.3 and now Apache will not start. I'm too much of a "newbie" to be able to find the reason, so I'd appreciate some very basic help.


8:30:24 AM [Apache] Problem detected!
8:30:24 AM [Apache] Port 80 in use by "Unable to open process" with PID 6156!
8:30:24 AM [Apache] Apache WILL NOT start without the configured ports free!
8:30:24 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
8:30:24 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
8:30:24 AM [Apache] Problem detected!
8:30:24 AM [Apache] Port 443 in use by "Unable to open process" with PID 6156!
8:30:24 AM [Apache] Apache WILL NOT start without the configured ports free!
8:30:24 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
8:30:24 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
8:30:24 AM [Apache] Attempting to start Apache app...
8:30:24 AM [Apache] Status change detected: running
8:30:24 AM [Apache] Status change detected: stopped
8:30:24 AM [Apache] Error: Apache shutdown unexpectedly.
8:30:24 AM [Apache] This may be due to a blocked port, missing dependencies,
8:30:24 AM [Apache] improper privileges, a crash, or a shutdown by another method.
8:30:24 AM [Apache] Press the Logs button to view error logs and check
8:30:24 AM [Apache] the Windows Event Viewer for more clues
8:30:24 AM [Apache] If you need more help, copy and post this
8:30:24 AM [Apache] entire log window on the forums

I guess, I have a port problem. How do I fix?

The current ports are Main Port: 80 SSL Port: 443

I only use Apache and mysql. MySQL starts fine.

Thanks..
Last edited by bruceaj on 01. December 2013 14:31, edited 2 times in total.
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 14:26

bruceaj wrote:8:08:15 AM [Apache] If you need more help, copy and post this
8:08:15 AM [Apache] entire log window on the forums


This is not the entire log window.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache will not start

Postby bruceaj » 01. December 2013 14:38

The log file:
[Sun Dec 01 08:03:10.828333 2013] [ssl:warn] [pid 6156:tid 320] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Dec 01 08:03:11.172103 2013] [ssl:warn] [pid 6156:tid 320] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Dec 01 08:03:11.250234 2013] [mpm_winnt:notice] [pid 6156:tid 320] AH00455: Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.3 configured -- resuming normal operations
[Sun Dec 01 08:03:11.250234 2013] [mpm_winnt:notice] [pid 6156:tid 320] AH00456: Server built: Feb 23 2013 12:42:00
[Sun Dec 01 08:03:11.250234 2013] [core:notice] [pid 6156:tid 320] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Dec 01 08:03:11.265859 2013] [mpm_winnt:notice] [pid 6156:tid 320] AH00418: Parent: Created child process 1064
[Sun Dec 01 08:03:12.094030 2013] [ssl:warn] [pid 1064:tid 320] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Dec 01 08:03:12.422174 2013] [ssl:warn] [pid 1064:tid 320] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Dec 01 08:03:12.469052 2013] [mpm_winnt:notice] [pid 1064:tid 320] AH00354: Child: Starting 150 worker threads.
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 14:45

We need the entire contents of the XAMPP control panel log window
Beginning with the line
Code: Select all
[main]    Initializing Control Panel
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache will not start

Postby bruceaj » 01. December 2013 15:08

I couldn't find anything beginning with "CODE: SELECT ALL". Where do I look? Sorry.


9:05:33 AM [main] Initializing Control Panel
9:05:33 AM [main] Windows Version: Windows 8 64-bit
9:05:33 AM [main] XAMPP Version: 1.8.3
9:05:33 AM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
9:05:33 AM [main] You are not running with administrator rights! This will work for
9:05:33 AM [main] most application stuff but whenever you do something with services
9:05:33 AM [main] there will be a security dialogue or things will break! So think
9:05:33 AM [main] about running this application with administrator rights!
9:05:33 AM [main] XAMPP Installation Directory: "c:\xampp\"
9:05:33 AM [main] Checking for prerequisites
9:05:33 AM [main] All prerequisites found
9:05:33 AM [main] Initializing Modules
9:05:33 AM [Apache] Problem detected!
9:05:33 AM [Apache] Port 80 in use by "Unable to open process" with PID 6156!
9:05:33 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:33 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:33 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:05:33 AM [Apache] Problem detected!
9:05:33 AM [Apache] Port 443 in use by "Unable to open process" with PID 6156!
9:05:33 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:33 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:33 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:05:33 AM [mysql] XAMPP MySQL is already running on port 3306
9:05:33 AM [main] Enabling autostart for module "Apache"
9:05:33 AM [main] Enabling autostart for module "MySQL"
9:05:33 AM [main] Starting Check-Timer
9:05:33 AM [main] Control Panel Ready
9:05:34 AM [Apache] Autostart active: starting...
9:05:34 AM [Apache] Problem detected!
9:05:34 AM [Apache] Port 80 in use by "Unable to open process" with PID 6156!
9:05:34 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:34 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:34 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:05:34 AM [Apache] Problem detected!
9:05:34 AM [Apache] Port 443 in use by "Unable to open process" with PID 6156!
9:05:34 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:34 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:34 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:05:34 AM [Apache] Attempting to start Apache app...
9:05:34 AM [mysql] Autostart aborted: MySQL is already running
9:05:34 AM [Apache] Status change detected: running
9:05:35 AM [Apache] Status change detected: stopped
9:05:35 AM [Apache] Error: Apache shutdown unexpectedly.
9:05:35 AM [Apache] This may be due to a blocked port, missing dependencies,
9:05:35 AM [Apache] improper privileges, a crash, or a shutdown by another method.
9:05:35 AM [Apache] Press the Logs button to view error logs and check
9:05:35 AM [Apache] the Windows Event Viewer for more clues
9:05:35 AM [Apache] If you need more help, copy and post this
9:05:35 AM [Apache] entire log window on the forums
9:07:08 AM [main] Executing "c:\xampp\"
9:07:15 AM [main] Executing "services.msc"
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 15:17

bruceaj wrote:I couldn't find anything beginning with "CODE: SELECT ALL". Where do I look? Sorry.

That's okay. This "CODE: SELECT ALL" is part of the BBCode i used in that post. It contains a helper function to select everything inside this code Tags with just one click.

bruceaj wrote:9:05:33 AM [main] You are not running with administrator rights! This will work for
9:05:33 AM [main] most application stuff but whenever you do something with services
9:05:33 AM [main] there will be a security dialogue or things will break! So think
9:05:33 AM [main] about running this application with administrator rights!

First thing to do is close the control panel and open it with elevated administrator rights (rightclick the control panel exe file and choose "run as administrator"
reason for this is that otherwise the control panel doesn't have any permissions to resolve process ids of running processes.



bruceaj wrote:9:05:33 AM [Apache] Problem detected!
9:05:33 AM [Apache] Port 80 in use by "Unable to open process" with PID 6156!
9:05:33 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:33 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:33 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:05:33 AM [Apache] Problem detected!
9:05:33 AM [Apache] Port 443 in use by "Unable to open process" with PID 6156!
9:05:33 AM [Apache] Apache WILL NOT start without the configured ports free!
9:05:33 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:05:33 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port

There is already a process started that uses port 80 and port 443. I don't know what process id (PID) 6156 is and the control panel can't resolve it because of missing priviledges.

bruceaj wrote:9:05:33 AM [main] Enabling autostart for module "Apache"
9:05:33 AM [main] Enabling autostart for module "MySQL"

you have enabled autostart for Apache and MySQL. You should disablem them again to not produce additional issues before your current one is solved.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache will not start

Postby bruceaj » 01. December 2013 15:27

Okay. I opened it as administrator.

I disabled autostart.

Interesting: Apache looks like it has started with PID 6156 and 1064, with ports 80 and 443.

9:28:15 AM [main] Initializing Control Panel
9:28:15 AM [main] Windows Version: Windows 8 64-bit
9:28:15 AM [main] XAMPP Version: 1.8.3
9:28:15 AM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
9:28:15 AM [main] Running with Administrator rights - good!
9:28:15 AM [main] XAMPP Installation Directory: "c:\xampp\"
9:28:15 AM [main] Checking for prerequisites
9:28:15 AM [main] All prerequisites found
9:28:15 AM [main] Initializing Modules
9:28:15 AM [Apache] XAMPP Apache is already running on port 80
9:28:15 AM [Apache] XAMPP Apache is already running on port 443
9:28:15 AM [mysql] XAMPP MySQL is already running on port 3306
9:28:15 AM [main] Enabling autostart for module "Apache"
9:28:15 AM [main] Enabling autostart for module "MySQL"
9:28:15 AM [main] Starting Check-Timer
9:28:15 AM [main] Control Panel Ready
9:28:16 AM [Apache] Autostart aborted: Apache is already running
9:28:16 AM [mysql] Autostart aborted: MySQL is already running
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby bruceaj » 01. December 2013 15:33

What should I do next?

Can you give me any more help?
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 15:48

Well, Apache seems to be started so open your browser and try to request http://localhost/
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache will not start

Postby bruceaj » 01. December 2013 15:52

XAMPP came up.

When I was running 1.8.1 I didn't have to run as Administrator. Now, to run as Administrator (i.e. the right click stuff) I have to go into the go into the ProgramData directory and right click the base .exe. How can that be changed so I can start from the desk top as a Non-Administrator?

Thanks for the help..

Bruce
Last edited by bruceaj on 01. December 2013 16:17, edited 1 time in total.
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 16:13

So everything seems fine.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache will not start

Postby bruceaj » 01. December 2013 16:21

I think so??

I just stop XAMPP and restarted. It came up with PID 7396 and 560 with Ports 80 and 443.

So I guess it's working.

Thanks.
bruceaj
 
Posts: 26
Joined: 15. December 2012 17:37
Operating System: Windows 8

Re: Apache will not start

Postby Altrea » 01. December 2013 16:32

You are welcome.
Have fun with XAMPP and all that stuff 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 115 guests