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..
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
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
I'm getting the following errors when I launch XAMPP.
12:35:23 [main] Initializing Control Panel
12:35:23 [main] Windows Version: 64-bit
12:35:23 [main] XAMPP Version: 1.8.1
12:35:23 [main] Control Panel Version: 3.1.0 3.1.0 [ Compiled: September 20th 2012 ]
12:35:23 [main] Running with Administrator rights - good!
12:35:23 [main] XAMPP Installation Directory: "c:\xampp\"
12:35:23 [main] Checking for prerequisites
12:35:23 [main] All prerequisites found
12:35:23 [main] Initializing Modules
12:35:23 [Apache] XAMPP Apache Service is already running on port 80
12:35:23 [Apache] XAMPP Apache Service is already running on port 443
12:35:23 [mysql] MySQL Service detected with wrong path
12:35:23 [mysql] Change XAMPP MySQL settings or
12:35:23 [mysql] Uninstall/disable the other service manually first
12:35:23 [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
12:35:23 [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
12:35:23 [mysql] Problem detected!
12:35:23 [mysql] Port 3306 in use by "mysqld.exe"!
12:35:23 [mysql] MySQL WILL NOT start without the configured ports free!
12:35:23 [mysql] You need to uninstall/disable/reconfigure the blocking application
12:35:23 [mysql] or reconfigure MySQL to listen on a different port
12:35:23 [main] Starting Check-Timer
12:35:23 [main] Control Panel Ready
I wasn't able to find a proper solution on google, so I'm kinda' hoping someone could help me out with this.
Oh and, XAMPP is running properly. Apache and the MySQL service are both running ..
Go to cmd and run it with Administrator mode.
Uninstall mysql service through command prompt using the following command.
sc delete mysql
restart XAMPP
To delete existing service is not good solution for me, because on port 3306 run MySQL, which need other service. But it is possible to run two MySQL services at one time (one with other name and port). I found the solution here: http://emjaywebdesigns.com/xampp-and-multiple-instances-of-mysql-on-windows/
Here is my modified setting:
Edit your “my.ini” file in c:\xampp\mysql\bin\
Change all default 3306 port entries to a new value 3308
edit your “php.ini” in c:\xampp\php and replace 3306 by 3308
Create the service entry - in Windows command line type
sc.exe create "mysqlweb" binPath= "C:\xampp\mysql\bin\mysqld.exe
--defaults-file=c:\xampp\mysql\bin\my.ini mysqlweb"
Open Windows Services and set Startup Type: Automatic, Start the service
This is how I solved similar problem:
Launch XAMPP Control Panel.
Uninstall the MySQL service: click 'green check' button beside MySQL, under Service column. The 'green check' button will change into 'red cross' button.
Exit XAMPP, and relaunch it again.
Click Start.
I hope it can help solve your problem too.
Firstly enter cmd.
Then write:
sc delete MySQL
After that restart your computer. When restarting your computer and opening your xampp, you can see cross symbol on the MySQL. Click the cross symbol and click the start. That's all.
Set XAMPP controlpanel to run under Administrator priviledges.
In Win 7
1. First make sure XAMPP control panel is not running
2. SHIFT+right click on XAMPP Control Panel
3. Click on properties
4. In properties select tab 'Compatibility'
5. On bottom of the tab under 'Privilege level' check the box "Run this program as an administrator"
6. Click OK
this worked for me
Ok so i found out the problem :)
ctrl+alt+delete to start task manager, once you get to task manager go to services. find MySQL and right click on it. Then click stop process. That worked for me and i hope it works for you :D
its because you probaly installed wamp server and uninstall it but wampmysql.exe still running and using the default mysql port
go to msconfig
under services tab uncheck wampmysqld to deactivate it
reboot the computer should work
Ok it's very easy actually to solve this...most of you who are presented with this problem probably don't even realize you don't have the full software yet installed :)
I tried looking online with little success except some1 mentioned you need to look for those services running already. Forexample problem with filezilla you look in task manager for filezilla and you stop the process then you click the X in the xampp control pannel to install filezilla and then click run and it should start the service normally showing you a green lite with a check mark.
Same goes for mysql issues.
As for the apache problem, it usualy is a problem with the port being overtaken by skype or some other program, but you can find info how to solve that on the net easily :)
about this specific issue:
12:35:23 [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
12:35:23 [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
notice that .exe is missing from 1st row at the end of mysqld.
To fix this, start regedit.exe and change
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\mysql ImagePath
by adding the .exe extension.
Restart xampp control panel and this error should not show up.
This is how I solved mine, using mircea answer above.
From the error above, copy the mentioned Expected Path.
Start regedit.exe, go to HKEY_LOCAL_MACHINE then SYSTEM then CurrentControlSet then services then MySQL. Click ImagePath, Edit, Modify. Paste the Expected path copied from the above into the Value data field, Press OK, close regedit. Restart Xampp.
That is how it worked for me, for I'm having MSSQL server installed and running and didn't want to do away with it.
In my case this issue caused because my local machine used to the one MySQL service installed earlier at 3006 port.
Thus I modified both my.ini (C:\xampp\mysql\bin\my.ini) and php.ini (C:\xampp\php\php.ini) files replaced port 3006 to 3008
After that I've created a new service running the command described above by Tommer:
sc.exe create "mysqlweb" binPath= "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysqlweb"
hello i have had same problem an i did the steps with tommer and the problem solved thank you
note :
you don't have to go to that like just do this ;
1)-- Edit your “my.ini” file in c:\xampp\mysql\bin\ Change all default 3306 port entries to a new value 3308
2)--edit your “php.ini” in c:\xampp\php and replace 3306 by 3308
3)--Create the service entry - in Windows command line type
sc.exe create "mysqlweb" binPath= "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysqlweb"
4)--Open Windows Services and set Startup Type: Automatic, Start the service