How to fix XAMPP "Apache / mysql shutdown unexpectedly" error - php

I was setting up a PHP server because I wrote some PHP code:
I opened XAMPP and it said:
18:36:08 [Apache] Error: Apache shutdown unexpectedly.
18:36:08 [Apache] This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method.
18:36:08 [Apache] Press the Logs button to view error logs and check the Windows Event Viewer for more clues
18:36:08 [Apache] If you need more help, copy and post this entire log window on the forums
18:36:23 [mysql] Status change detected: stopped
18:36:23 [mysql] Error: MySQL shutdown unexpectedly.
18:36:23 [mysql] This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method.
18:36:23 [mysql] Press the Logs button to view error logs and check the Windows Event Viewer for more clues
18:36:23 [mysql] If you need more help, copy and post this entire log window on the forums
What is happening???

There issue with port.
Open Skype. Go to Tools -> Options -> Advanced -> Connection.
Uncheck the Use port 80 and 443 for alternatives for incoming connections checkbox
Sign Out and Close all Skype windows.
Try restarting your Apache.

Related

error showing when starting xampp after changing the hard disk to ssd

I have been running xampp from D drive well. Recently I have changed my hard disk to ssd. After then I can not run the xampp. I have checked the port that is written 8080 in httpd.conf and 4333 httpd-ssl.conf as per other suggestions. yet, I am getting the below message:
1:56:37 AM [Apache] Attempting to start Apache app...
1:56:38 AM [Apache] Status change detected: running
1:56:38 AM [Apache] Status change detected: stopped
1:56:38 AM [Apache] Error: Apache shutdown unexpectedly.
1:56:38 AM [Apache] This may be due to a blocked port, missing dependencies,
1:56:38 AM [Apache] improper privileges, a crash, or a shutdown by another method.
1:56:38 AM [Apache] Press the Logs button to view error logs and check
1:56:38 AM [Apache] the Windows Event Viewer for more clues
1:56:38 AM [Apache] If you need more help, copy and post this
1:56:38 AM [Apache] entire log window on the forums
1:56:40 AM [mysql] Attempting to start MySQL app...
Please suggest me a solution.
Thank you.

Configuration after move XAMPP on one to other directory?

For XAMPP, Update bellow configurations files and replace your old directory to new one.
Like if your old directory was C: drive and you was moved your xampp on D: then replace bellow files C: to D: on bellow all configuration files.
Xampp/apache/conf/
1) httpd.conf
2) exra/httpd-ssl.conf
3) exra/httpd-xampp.conf
Xampp/mysql/bin
1) my.ini
Xampp/php/
1) php.ini
Getting bellow error when i start mysql or apache
Apache Error showing when i changed drive
11:13:52 [Apache] Error: Apache shutdown unexpectedly.
11:13:52 [Apache] This may be due to a blocked port, missing dependencies,
11:13:52 [Apache] improper privileges, a crash, or a shutdown by another method.
11:13:52 [Apache] Press the Logs button to view error logs and check
11:13:52 [Apache] the Windows Event Viewer for more clues
11:13:52 [Apache] If you need more help, copy and post this
11:13:52 [Apache] entire log window on the forums
MySQL Error showing when i changed drive
11:14:02 [mysql] Attempting to start MySQL app...
11:14:02 [mysql] Status change detected: running
11:14:02 [mysql] Status change detected: stopped
11:14:02 [mysql] Error: MySQL shutdown unexpectedly.
11:14:02 [mysql] This may be due to a blocked port, missing dependencies,
11:14:02 [mysql] improper privileges, a crash, or a shutdown by another method.
11:14:02 [mysql] Press the Logs button to view error logs and check
11:14:02 [mysql] the Windows Event Viewer for more clues
11:14:02 [mysql] If you need more help, copy and post this
11:14:02 [mysql] entire log window on the forums

MySQL shutdown unexpectedly xampp

My apache is running properly but mysql server is showing this error
Error: MySQL shutdown unexpectedly.
[mysql] This may be due to a blocked port, missing dependencies,
[mysql] improper privileges, a crash, or a shutdown by another method.
[mysql] Press the Logs button to view error logs and check
[mysql] the Windows Event Viewer for more clues
[mysql] If you need more help, copy and post this
[mysql] entire log window on the forums
I tried deleting ibdata1, ib_logfile0, ib_logfile1, ib_logfile101 files, but it didn't workout. Help me to solve this problem.
I have faced the same issues today.
Error: MySQL shutdown unexpectedly.
7:56:51 PM [mysql] This may be due to a blocked port, missing dependencies,
7:56:51 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:56:52 PM [mysql] Press the Logs button to view error logs and check
7:56:52 PM [mysql] the Windows Event Viewer for more clues
7:56:52 PM [mysql] If you need more help, copy and post this
7:56:52 PM [mysql] entire log window on the forums
Solution:
Stop the Apache Service, then
Copy all files from xampp\mysql\backup, and paste all files inside xampp\mysql\data.
Start Apache
...and MySQL is working perfectly.
I faced the same problem.
22:41:18 [mysql] Error: MySQL shutdown unexpectedly.
22:41:18 [mysql] This may be due to a blocked port, missing dependencies,
22:41:18 [mysql] improper privileges, a crash, or a shutdown by another method.
22:41:18 [mysql] Press the Logs button to view error logs and check
22:41:18 [mysql] the Windows Event Viewer for more clues
22:41:18 [mysql] If you need more help, copy and post this
22:41:18 [mysql] entire log window on the forums
But it didn't work even after copying all files from xampp\mysql\backup, and pasting them inside xampp\mysql\data Or when I deleted ibdata1 file.
So, I went through this link.
Free the port number
Stop your Apache module in xampp control panel.
Open command prompt and Run as Administrator
Type “netstat -ano” in the cmd prompt. This will show all the port connections in your network.
netstat -ano
Now find your port number and use it in the find string. In my case, it is 3306.
Type “netstat -ano | findstr 3306” in cmd prompt and hit enter.
netstat -ano | findstr 3306
Find the listening id of 3306. In my case, 5224 is my listening id.
Kill that process id with “taskkill /PID 6204 /F“.
taskkill /PID 5224 /F
SUCCESS: The process with PID 5224 has been terminated. will be the output.
Restart the xampp Server.
And it worked!
[mysql] Press the Logs button to view error logs and check
[mysql] the Windows Event Viewer for more clues
We could use this information to help you out.
Possibilties:
incorect config - try to restore some known good config blocked port - quite often its skype(especially older versions of skype), try changing MySQL port

MySql Error when I start mysql in xampp windows

When I start mysql in control panel I obtain this error:
Error: MySQL shutdown unexpectedly.
09:35:03 [mysql] This may be due to a blocked port, missing dependencies,
09:35:03 [mysql] improper privileges, a crash, or a shutdown by another method.
09:35:03 [mysql] Press the Logs button to view error logs and check
09:35:03 [mysql] the Windows Event Viewer for more clues
09:35:03 [mysql] If you need more help, copy and post this
09:35:03 [mysql] entire log window on the forums
Anyone can help me?

XAMPP error message

I downloaded the xampp but have the following errors:
I really need help I am not a programmer and just a user and would like to use typo3 to create a website using Xampp.
12:14:00 [Apache] Status change detected: running
12:14:00 [Apache] Status change detected: stopped
12:14:00 [Apache] Error: Apache shutdown unexpectedly.
12:14:00 [Apache] This may be due to a blocked port, missing dependencies,
12:14:00 [Apache] improper privileges, a crash, or a shutdown by another method.
12:14:00 [Apache] Press the Logs button to view error logs and check
12:14:00 [Apache] the Windows Event Viewer for more clues
12:14:00 [Apache] If you need more help, copy and post this
12:14:00 [Apache] entire log window on the forums
please any one help to use XAMPP apache without error .......
Please take a look at this question:
apache is not working on xampp
You need to find the httpd.conf file and Listen section. Try to change it to something else (if you have e.g. 80, change it to 8080 or 9090) and try to start Apache again.
change port no in xampp. error occur due to same port no skype 8080 and xampp server port no is 8080 same. so change the port no 8085 in xampp init file
it may help you

Categories