XAMPP: Starting Apache…fail. XAMPP: Another web server is already running.

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Error:-

root@ip-Your-Ip-Address:/opt/lampp# /opt/lampp/lampp start
Starting XAMPP for Linux 8.1.25-0...
XAMPP: Starting Apache...fail.
XAMPP:  Another web server is already running.
XAMPP: Starting MySQL...ok.

When You get this error You don’t need to panic. Just Follow my commands and instruction you will get the solution.

First Solution:-

Step 1:-

You must locate and terminate any programs that are utilizing the ports that Apache and ProFTPD require. To do this, use the methods listed below:

sudo lsof -i :80

Step 2:-

Once you identify the process, note down its PID (Process ID). And Stop the process.

sudo kill <PID>

Step 3:-

Then Run this Command to restart the apache.

sudo /opt/lampp/lampp restartapache

Second Solution:-

Step 1:-

Check the status of Apache: Let’s first make sure that Apache is really operating outside of XAMPP. To see the Apache service’s current status, use the following command:

sudo service apache2 status

Step 2:-

Stop Apache Service: The following command can be used to halt Apache if it is operating outside of XAMPP:

sudo service apache2 stop

Step 3:-

After stopping Apache, you can attempt to resume it in XAMPP by utilizing:

sudo /opt/lampp/lampp restartapache

Senior Software Development Engineer at Cotocus

Related Posts

Tuning PHP 8.3 for Apache Event MPM and PHP-FPM on Ubuntu: A Complete Step-by-Step Production Guide

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Moving…

Read More

Convert XAMPP Apache to Event MPM + System PHP-FPM

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now This…

Read More

Is XAMPP Safer for Production Than Using Apache and PHP as Root? 2026 Practical Guide

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If…

Read More

How to Install and Configure XAMPP on Ubuntu 24 Server (Latest Version – 2026 Complete Guide)

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If…

Read More

Installing Eventmie on LAMPP, Enabling PHP GMP, and Fixing Related Server Issues

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now 1)…

Read More

How to Use XAMPP’s PHP and Composer on Linux

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now XAMPP…

Read More
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
johan raj
johan raj
2 years ago

thanks for sharing this … it helps me a lot i was stuck in this from last 3 hours and now i finally use your tips and trick