XAMPP Error: Apache Shutdown Unexpectedly

XAMPP Error: Apache Shutdown Unexpectedly

XAMPP error Apache shutdown unexpectedly due to ports blocked, conflicts, or configuration errors. To fix this, check for conflicting applications, adjust port settings, and review error logs in the XAMPP control panel.

How to fix XAMPP Error: Apache Shutdown Unexpectedly

If you face the “Apache Shutdown Unexpectedly” error on your Windows device while using XAMPP, follow these steps to update your default port settings.

  • Step 1: Open Configuration Settings from XAMPP Control Panel
  • Step 2: Change Default Port Settings in httpd.conf File
  • Step 3: Update Default Port Settings in http-ssl.conf File
  • Step 4: Restart Apache

Step 1: Open Configuration Settings from XAMPP Control Panel

Launch XAMPP to access the control panel. Focus on Apache settings by clicking the Config button in the “Apache” row of options.

Step 2: Change Default Port Settings in httpd.conf File

Select Apache (httpd.conf) from the menu, opening it in your default text editor.

Use Ctrl + F, search for “80,” and update “Port 80” to “Port 8080.” Similarly, modify “Listen 80” to “Listen 8080.” Change “servername localhost:80” to “servername localhost:8080” and save the file.

Step 3: Update Default Port Settings in http-ssl.conf File

Return to the XAMPP control panel, select Config under Apache settings, and open Apache (http-ssl.conf).

Then Search for “443,” update “Listen 443” to “Listen 4433,” and change “<VirtualHost _default_:443>” to “<VirtualHost _default_:4433>.” Save and close the file.

Step 4: Restart Apache

Click the Stop button in the Apache row to halt Apache. After stopping, click Start to complete the restart process. Your port settings are now updated, and Apache should run error-free.

Conclusion

Following these four steps, you can quickly troubleshoot and resolve your XAMPP Error: Apache Shutdown Unexpectedly.

Recommended Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

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