Apache and MySQL won't start

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

Apache and MySQL won't start

Postby shotgundre » 24. May 2016 05:11

To dear fellows in this forum. I'm a newbie to Apache, MySQL, and PHP.
However, I have installed Apache and MySQL and both of these programs apparently are running.
But according XAMPP both of them were stopped.

Here's what the log look like:
10:58:34 AM [main] Initializing Control Panel
10:58:34 AM [main] Windows Version: Windows 8.1 64-bit
10:58:34 AM [main] XAMPP Version: 5.6.21
10:58:34 AM [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
10:58:34 AM [main] You are not running with administrator rights! This will work for
10:58:34 AM [main] most application stuff but whenever you do something with services
10:58:34 AM [main] there will be a security dialogue or things will break! So think
10:58:34 AM [main] about running this application with administrator rights!
10:58:34 AM [main] XAMPP Installation Directory: "c:\xampp\"
10:58:34 AM [main] Checking for prerequisites
10:58:34 AM [main] All prerequisites found
10:58:34 AM [main] Initializing Modules
10:58:34 AM [Apache] Apache Service detected with wrong path
10:58:34 AM [Apache] Change XAMPP Apache and Control Panel settings or
10:58:34 AM [Apache] Uninstall/disable the other service manually first
10:58:34 AM [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
10:58:34 AM [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
10:58:34 AM [Apache] Problem detected!
10:58:34 AM [Apache] Port 80 in use by ""C:\Apache24\bin\httpd.exe" -k runservice" with PID 1420!
10:58:34 AM [Apache] Apache WILL NOT start without the configured ports free!
10:58:34 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
10:58:34 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:58:34 AM [mysql] Problem detected!
10:58:34 AM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MySQL57"!
10:58:34 AM [mysql] MySQL WILL NOT start without the configured ports free!
10:58:34 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
10:58:34 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
10:58:34 AM [main] Enabling autostart for module "Apache"
10:58:34 AM [main] Enabling autostart for module "MySQL"
10:58:34 AM [main] Starting Check-Timer
10:58:34 AM [main] Control Panel Ready
10:58:35 AM [Apache] Autostart active: starting...
10:58:35 AM [Apache] Problem detected!
10:58:35 AM [Apache] Port 80 in use by ""C:\Apache24\bin\httpd.exe" -k runservice" with PID 1420!
10:58:35 AM [Apache] Apache WILL NOT start without the configured ports free!
10:58:35 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
10:58:35 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:58:35 AM [Apache] Attempting to start Apache service...
10:58:35 AM [mysql] Autostart active: starting...
10:58:35 AM [mysql] Problem detected!
10:58:35 AM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MySQL57"!
10:58:35 AM [mysql] MySQL WILL NOT start without the configured ports free!
10:58:35 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
10:58:35 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
10:58:35 AM [mysql] Attempting to start MySQL app...
10:58:36 AM [mysql] Status change detected: running
10:58:39 AM [mysql] Status change detected: stopped
10:58:39 AM [mysql] Error: MySQL shutdown unexpectedly.
10:58:39 AM [mysql] This may be due to a blocked port, missing dependencies,
10:58:39 AM [mysql] improper privileges, a crash, or a shutdown by another method.
10:58:39 AM [mysql] Press the Logs button to view error logs and check
10:58:39 AM [mysql] the Windows Event Viewer for more clues
10:58:39 AM [mysql] If you need more help, copy and post this
10:58:39 AM [mysql] entire log window on the forums

Please help immediately.
Thank you very much!
shotgundre
 
Posts: 1
Joined: 24. May 2016 05:05
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: Apache and MySQL won't start

Postby JJ_Tagy » 24. May 2016 16:43

You should decide if you want Apache and MySQL individually OR XAMMP. XAMPP already comes with those and PHP. I recommend uninstalling the standalone apps (including removing them starting as services).
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 26 guests