Page 1 of 1

Apache will not start

PostPosted: 01. December 2013 14:19
by bruceaj
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..

Re: Apache will not start

PostPosted: 01. December 2013 14:26
by Altrea
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.

Re: Apache will not start

PostPosted: 01. December 2013 14:38
by bruceaj
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.

Re: Apache will not start

PostPosted: 01. December 2013 14:45
by Altrea
We need the entire contents of the XAMPP control panel log window
Beginning with the line
Code: Select all
[main]    Initializing Control Panel

Re: Apache will not start

PostPosted: 01. December 2013 15:08
by bruceaj
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"

Re: Apache will not start

PostPosted: 01. December 2013 15:17
by Altrea
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.

Re: Apache will not start

PostPosted: 01. December 2013 15:27
by bruceaj
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

Re: Apache will not start

PostPosted: 01. December 2013 15:33
by bruceaj
What should I do next?

Can you give me any more help?

Re: Apache will not start

PostPosted: 01. December 2013 15:48
by Altrea
Well, Apache seems to be started so open your browser and try to request http://localhost/

Re: Apache will not start

PostPosted: 01. December 2013 15:52
by bruceaj
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

Re: Apache will not start

PostPosted: 01. December 2013 16:13
by Altrea
So everything seems fine.

Re: Apache will not start

PostPosted: 01. December 2013 16:21
by bruceaj
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.

Re: Apache will not start

PostPosted: 01. December 2013 16:32
by Altrea
You are welcome.
Have fun with XAMPP and all that stuff 8)