Here we will discuss the Error: Apache shutdown unexpectedly issues with XAMPP. In this complete article, we will know why the Apache and MySQL issue occurs and how we can solve them easily or without editing the configuration files.
Why this “apache shutdown unexpectedly” xampp occur
After installing the XAMPP server, here are some major points that may cause the apache error,
- Default ports are used by other resources or software.
- Any other apache server is running on the same port. (You can check it by using your Task Manager)
[Solution] error: apache shutdown unexpectedly xampp occurs
Here is the complete step-by-step solution without editing the configuration file.
Step: 1
Open XAMPP with administrator permission.
Also Read: Send Mail From Localhost in PHP Using XAMPP
Step: 2
Click on the “Config” button,
Step – 3
Now click on “Service and Port Settings“, now you can see the Apache port setting on the following image.
Here you can set Port numbers according to your requirements and then hit the “SAVE” button.
You can do it for MySQL as well.
After completing these steps, you can now Start your Apache and MySQL both correctly.
This is the complete and most easy method to solve the error: apache shutdown unexpectedly xampp issue on windows systems.
You can download XAMPP from here Download XAMPP (apachefriends.org) as well.
I hope this can help you.
Also Read: How to Execute PHP File From Command Line
Happy Coding..!
2 Replies to “XAMPP, Apache – Error: Apache shutdown unexpectedly – Solved”