Skip to content
Home » XAMPP, Apache – Error: Apache shutdown unexpectedly – Solved

XAMPP, Apache – Error: Apache shutdown unexpectedly – Solved

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.

Error: Apache shutdown unexpectedly
Error: Apache shutdown unexpectedly

Also Read: Increase PHPMyAdmin Import Size Ubuntu and XAMPP

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.

XAMPP Run as Administartor
XAMPP Run as Administartor

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.

XAMPP Service and Port Settings

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 ( as well.

I hope this can help you.

Also Read: How to Execute PHP File From Command Line

Happy Coding..!

Was this article helpful?

2 thoughts on “XAMPP, Apache – Error: Apache shutdown unexpectedly – Solved”

  1. Pingback: How to Print Multiple Array Values in PHP? - PHPCODER.TECH

  2. Pingback: Locate empty directories in Linux using Terminal - PHPCODER.TECH

Leave a Reply

Your email address will not be published. Required fields are marked *