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
Related
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?
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..
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.
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
So I was trying to use XAMPP and it started giving me weird errors. I can't figure out what's causing these kind of errors.Here's what it says:
2:57:57 PM [mysql] MySQL Service detected with wrong path
2:57:57 PM [mysql] Change XAMPP MySQL settings or
2:57:57 PM [mysql] Uninstall/disable the other service manually first
2:57:57 PM [mysql] Found Path: ERROR: Not Able To Open Service Manager
2:57:57 PM [mysql] Expected Path: c:\program files\xampp\mysql\bin\mysqld.exe --defaults-file=c:\program files\xampp\mysql\bin\my.ini mysql
2:57:57 PM [mysql] Successful!
Then, I still click on the START button of mysql and then click Shell, here another error and it says:
File:" c:\program files\xampp\xampp_shell.bat" not found.
How can I fix this errors?