XAMPP cannot start Apache and MySQL

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

XAMPP cannot start Apache and MySQL

Postby horatius » 16. August 2017 03:43

Just installed XAMPP 5.6.31
Cannot start apache and mySQL
Here is the problem log

20:01:13 [main] Initializing Control Panel
20:01:13 [main] Windows Version: Home 64-bit
20:01:13 [main] XAMPP Version: 5.6.31
20:01:13 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
20:01:13 [main] You are not running with administrator rights! This will work for
20:01:13 [main] most application stuff but whenever you do something with services
20:01:13 [main] there will be a security dialogue or things will break! So think
20:01:13 [main] about running this application with administrator rights!
20:01:13 [main] XAMPP Installation Directory: "c:\xampp\"
20:01:13 [main] Checking for prerequisites
20:01:13 [main] All prerequisites found
20:01:13 [main] Initializing Modules
20:01:13 [Apache] Problem detected!
20:01:13 [Apache] Port 80 in use by "Unable to open process" with PID 4!
20:01:13 [Apache] Apache WILL NOT start without the configured ports free!
20:01:13 [Apache] You need to uninstall/disable/reconfigure the blocking application
20:01:13 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
20:01:13 [mysql] MySQL Service detected with wrong path
20:01:13 [mysql] Change XAMPP MySQL and Control Panel settings or
20:01:13 [mysql] Uninstall/disable the other service manually first
20:01:13 [mysql] Found Path: "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL
20:01:13 [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
20:01:13 [mysql] Problem detected!
20:01:13 [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL"!
20:01:13 [mysql] MySQL WILL NOT start without the configured ports free!
20:01:13 [mysql] You need to uninstall/disable/reconfigure the blocking application
20:01:13 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
20:01:13 [main] Starting Check-Timer
20:01:13 [main] Control Panel Ready
20:01:26 [Apache] Problem detected!
20:01:26 [Apache] Port 80 in use by "Unable to open process" with PID 4!
20:01:26 [Apache] Apache WILL NOT start without the configured ports free!
20:01:26 [Apache] You need to uninstall/disable/reconfigure the blocking application
20:01:26 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
20:01:26 [Apache] Attempting to start Apache app...
20:01:27 [Apache] Status change detected: running
20:01:30 [Apache] Status change detected: stopped
20:01:30 [Apache] Error: Apache shutdown unexpectedly.
20:01:30 [Apache] This may be due to a blocked port, missing dependencies,
20:01:30 [Apache] improper privileges, a crash, or a shutdown by another method.
20:01:30 [Apache] Press the Logs button to view error logs and check
20:01:30 [Apache] the Windows Event Viewer for more clues
20:01:30 [Apache] If you need more help, copy and post this
20:01:30 [Apache] entire log window on the forums
20:01:31 [mysql] Problem detected!
20:01:31 [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL"!
20:01:31 [mysql] MySQL WILL NOT start without the configured ports free!
20:01:31 [mysql] You need to uninstall/disable/reconfigure the blocking application
20:01:31 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
20:01:31 [mysql] Attempting to start MySQL service...
horatius
 
Posts: 2
Joined: 16. August 2017 03:34
XAMPP version: 5.6.31
Operating System: windows 10

Re: XAMPP cannot start Apache and MySQL

Postby Nobbie » 16. August 2017 11:59

For Apache:

Enter "ort 80 in use by "Unable to open process" with PID 4!" into Google.


For MySQL:

You already have installed another MySQL version onto your PC. See this message:

20:01:13 [mysql] Uninstall/disable the other service manually first
20:01:13 [mysql] Found Path: "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL

Either de-install that MySQL installation or (if you already uninstalled it but it leaves the service entry in Windows), check your Windows Services and delete the MySQL Service.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: XAMPP cannot start Apache and MySQL

Postby horatius » 17. August 2017 03:08

Thank you for the prompt reply, and it did solve my problems! For Apache, it seems I have to reconfig the port on windows 10.
horatius
 
Posts: 2
Joined: 16. August 2017 03:34
XAMPP version: 5.6.31
Operating System: windows 10

Re: XAMPP cannot start Apache and MySQL

Postby Nobbie » 17. August 2017 10:49

horatius wrote:it seems I have to reconfig the port on windows 10.


No, this is a bad option. Its far better to stop Microsoft IIS instead and use Port 80 for Apache.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 78 guests