Xampp won't start apache and mysql - mysql

My Xampp control panel won't start apache and mysql. When I click start the control panel console stays frozen in this state:
16:27:46 [main] Initializing Control Panel
16:27:46 [main] Windows Version: Home 64-bit
16:27:46 [main] XAMPP Version: 7.2.2
16:27:46 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
16:27:46 [main] Running with Administrator rights - good!
16:27:46 [main] XAMPP Installation Directory: "c:\programmieren\datenbanken\xampp\"
16:27:46 [main] Checking for prerequisites
16:27:46 [main] All prerequisites found
16:27:46 [main] Initializing Modules
16:27:46 [Apache] Apache Service detected with wrong path
16:27:46 [Apache] Change XAMPP Apache and Control Panel settings or
16:27:46 [Apache] Uninstall/disable the other service manually first
16:27:46 [Apache] Found Path: "C:\programmieren\sql\xampp\apache\bin\httpd.exe" -k runservice
16:27:46 [Apache] Expected Path: "c:\programmieren\datenbanken\xampp\apache\bin\httpd.exe" -k runservice
16:27:46 [mysql] MySQL Service detected with wrong path
16:27:46 [mysql] Change XAMPP MySQL and Control Panel settings or
16:27:46 [mysql] Uninstall/disable the other service manually first
16:27:46 [mysql] Found Path: C:\programmieren\sql\xampp\mysql\bin\mysqld.exe --defaults-file=c:\programmieren\sql\xampp\mysql\bin\my.ini MySQL
16:27:46 [mysql] Expected Path: c:\programmieren\datenbanken\xampp\mysql\bin\mysqld.exe --defaults-file=c:\programmieren\datenbanken\xampp\mysql\bin\my.ini MySQL
16:27:46 [main] Starting Check-Timer
16:27:46 [main] Control Panel Ready
16:27:49 [Apache] Attempting to start Apache service...
16:27:50 [mysql] Attempting to start MySQL service...
I'm running the control panel with administrator rights. I tried to reinstall Xampp, but it didn't help. I only have a single Xampp version installed. I don't have any clue what to do or what exactly is wrong.

Related

Configuring XAMPP to run Apache & MySQL

I'm trying to get XAMPP set up to run Apache & MySQL for a the Laravel development environment that I need to start using.
When I first opened XAMPP, I couldn't start Apache because port 80 was already in use. I changed the port to 8080 as recommended by the answer here.
Currently, when I open XAMPP up, I get an error that says:
11:12:00 [Apache] Problem detected!
11:12:00 [Apache] Port 80 in use by "Unable to open process" with PID 4!
11:12:00 [Apache] Apache WILL NOT start without the configured ports free!
11:12:00 [Apache] You need to uninstall/disable/reconfigure the blocking application
11:12:00 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
11:12:00 [main] Starting Check-Timer
11:12:00 [main] Control Panel Ready
But when I click 'Start' for the Apache service, it starts successfully.
When I click 'Start' for the MySQL service, I get the message:
11:17:01 [mysql] Attempting to start MySQL app...
and then nothing happens...
I tried doing what the accepted answer here suggests, and exited the server, deleted the ibdata1 file, and restarted the server, but it just got to the same point, with the message
11:22:55 [mysql] Attempting to start MySQL app...
then doesn't seem to do anything...
I came across the Conflicting ports of MySQL and XAMPP question, and tried what the answer suggested- changing the port number in my.ini from 3306 to 3307, and adding the line
$cfg['Servers'][$i]['port'] = '3307';
to config.inc.php, but that doesn't seem to have resolved the issue.
Any know how I can get MySQL to start up successfully from XAMPP?

Correcting errors in xampp

I am a beginner to xampp. Every time I start XAMPP control panel, I see a list of errors in the log box. Here is an example:
14:58:16 [main] Initializing Control Panel
14:58:16 [main] Windows Version: Windows 7 Professional SP1 64-bit
14:58:16 [main] XAMPP Version: 7.1.16
14:58:16 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
14:58:16 [main] Running with Administrator rights - good!
14:58:16 [main] XAMPP Installation Directory: "c:\program files (x86)\xampp\"
14:58:16 [main] WARNING: Your install directory contains spaces. This may break programs/scripts
14:58:16 [main] WARNING: Your install directory contains special characters. This may break programs/scripts
14:58:16 [main] Checking for prerequisites
14:58:41 [main] All prerequisites found
14:58:41 [main] Initializing Modules
14:58:41 [Apache] Problem detected!
14:58:41 [Apache] Port 80 in use by "Unable to open process" with PID 4!
14:58:41 [Apache] Apache WILL NOT start without the configured ports free!
14:58:41 [Apache] You need to uninstall/disable/reconfigure the blocking application
14:58:41 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
14:58:41 [main] The FileZilla module is disabled
14:58:41 [main] The Mercury module is disabled
14:58:41 [main] The Tomcat module is disabled
14:58:41 [main] Enabling autostart for module "Apache"
14:58:41 [main] Enabling autostart for module "MySQL"
14:58:41 [main] Starting Check-Timer
14:58:41 [main] Control Panel Ready
14:58:42 [Apache] Autostart active: starting...
14:58:42 [Apache] Problem detected!
14:58:42 [Apache] Port 80 in use by "Unable to open process" with PID 4!
14:58:42 [Apache] Apache WILL NOT start without the configured ports free!
14:58:42 [Apache] You need to uninstall/disable/reconfigure the blocking application
14:58:42 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
14:58:42 [Apache] Attempting to start Apache service...
14:58:42 [mysql] Autostart active: starting...
14:58:42 [mysql] Attempting to start MySQL service...
14:58:44 [mysql] Status change detected: running
14:58:49 [mysql] Status change detected: stopped
14:58:49 [mysql] Error: MySQL shutdown unexpectedly.
14:58:49 [mysql] This may be due to a blocked port, missing dependencies,
14:58:49 [mysql] improper privileges, a crash, or a shutdown by another method.
14:58:49 [mysql] Press the Logs button to view error logs and check
14:58:49 [mysql] the Windows Event Viewer for more clues
14:58:49 [mysql] If you need more help, copy and post this
14:58:49 [mysql] entire log window on the forums
14:59:22 [mysql] Attempting to start MySQL service...
14:59:24 [mysql] Status change detected: running
14:59:28 [mysql] Status change detected: stopped
14:59:28 [mysql] Error: MySQL shutdown unexpectedly.
14:59:28 [mysql] This may be due to a blocked port, missing dependencies,
14:59:28 [mysql] improper privileges, a crash, or a shutdown by another method.
14:59:29 [mysql] Press the Logs button to view error logs and check
14:59:29 [mysql] the Windows Event Viewer for more clues
14:59:29 [mysql] If you need more help, copy and post this
14:59:29 [mysql] entire log window on the forums
I am also attaching the screenshots of service settings of Apache and MySQL below:
Can someone help me in identifying and correcting these errors. Should I reinstall Xampp? Please answer.
Port 80 in use by "Unable to open process" with PID 4!
To change the port number open the file
[XAMPP Installation Folder]/apache/conf/httpd.conf
Search for the string ‘Listen’ and ServerName and update the port number
Or close the program that's using port 80 you can check that using this command
C:> netstat -a -b
usually Skype..

Apache and Mysql on XAMPP 3.2.1 not Starting

I have two xampp installed, both have two different PHP versions. when I run xampp with old PHP everything is running smoothly. but when I run xampp with the latest PHP, Apache and MySQL can not be run, always bring up the word "attempting to start mysql service" and "attempting to start the apache service". I've tried to change the ports for Apache and MySQL, but everything is useless.
oh, I get an error message like this:
11:07:51 [Apache] Apache Service detected with wrong path
11:07:51 [Apache] Change XAMPP Apache and Control Panel settings or
11:07:51 [Apache] Uninstall/disable the other service manually first
11:07:51 [Apache] Found Path:"D:\file3\install\xampp1\apache\bin\httpd.exe" -k runservice
11:07:51 [Apache] Expected Path: "c:\xampp1\apache\bin\httpd.exe" -k runservice
11:07:51 [mysql] MySQL Service detected with wrong path
11:07:51 [mysql] Change XAMPP MySQL and Control Panel settings or
11:07:51 [mysql] Uninstall/disable the other service manually first
11:07:51 [mysql] Found Path: D:\file3\install\xampp1\mysql\bin\mysqld.exe --defaults-file=d:\file3\install\xampp1\mysql\bin\my.ini mysql
11:07:51 [mysql] Expected Path: c:\xampp1\mysql\bin\mysqld.exe --defaults-file=c:\xampp1\mysql\bin\my.ini mysql
11:07:51 [main] Starting Check-Timer
11:07:51 [main] Control Panel Ready
but if I change the PATH then xampp with old versions of PHP will not be able to run, right? What should I do? No one can help me?
Uninstall both XAMPP's and reinstall the latest version.
1) Control Panel -> Programs -> Programs and Features
2) Find the XAMPP installation and uninstall it
* Do this for both that you see
You will also want to check if XAMPP is still installed as a service.
1) Hit the windows button and type "services"
2) Look for it in the list that you see
If it won't uninstall here's a post that may help: How to uninstall XAMPP when it won't uninstall

Unable to start Apache and MySQL servers in Windows

I am getting some issue with the installation of xampp in windows. Actually I have skype and team viewer installed in my laptop. I have uninstalled team viewer and in skype I have checked off the "use port 80 and 443 for additional incoming connections" Still I am getting this problem. which is
5:07:24 PM [Apache] Attempting to start Apache service...
5:07:32 PM [mysql] Problem detected!
5:07:32 PM [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"!
5:07:32 PM [mysql] MySQL WILL NOT start without the configured ports free!
5:07:32 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
5:07:32 PM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
5:07:32 PM [mysql] Attempting to start MySQL service...
Both MySql and Apache are not starting. Pls help me with this.
Thanks in advance. :)
As the error says: you are running MYSQL from C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld
You can go Windows logo > type services.msc > Search for Mysql Service and stop it. (left pannel "Stop")
NOTE: If you are going to use XAMPP, you should remove any previous installation of apache, php and/or mysql

Mysql server not starting in xampp

I am getting the following error when i start the mysql server from xampp control panel
MySQL Service detected with wrong path
PM 03:06:44 [mysql] Change XAMPP MySQL and Control Panel settings or
PM 03:06:44 [mysql] Uninstall/disable the other service manually first
PM 03:06:44 [mysql] Found Path: c:\xampp\mysql\bin\mysqld-nt.exe --defaults-file=c:\xampp\mysql\bin\my.cnf mysql
PM 03:06:44 [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
PM 03:06:44 [main] Starting Check-Timer
I ran Xampp as administrator.Uninstalled the Mysql. And now every is running fine .
But now i can access the localhost:1234 as port for my Apache is 1234