Informática y Software Práctico

XAMPP Port 80 Fix: Apache Won’t Start (2026 Guide)

Post actualizado el día octubre 29, 2026 by DeiviSanzPlay

XAMPP is probably the most widely used local development environment among those learning PHP, MySQL, or WordPress. Its installation is simple, but when something fails—and something always fails—the message that appears on screen rarely explains what happened. This guide reviews the most common failures and how to resolve them without reinstalling everything from scratch.

Apache won’t start: the classic port 80 in use

The usual symptom is a dialog box indicating that Apache stopped unexpectedly. In most cases, port 80 or 443 is already being used by another process. Skype, IIS, some Adobe services, or even the «World Wide Web Publishing» service itself may be listening there.

To identify it on Windows, open a console as administrator and run netstat -ano | findstr :80. The final number on each line is the PID of the culprit process; look it up in Task Manager and stop it. If you prefer not to touch other programs, edit httpd.conf and change Listen 80 to Listen 8080, and ServerName localhost:80 to localhost:8080. Remember to also adjust httpd-ssl.conf if you use HTTPS.

MySQL shuts down right after starting

When MySQL appears green for a second and then turns red again, there is almost always a previous instance of MySQL or MariaDB installed as a Windows service, or the data files were corrupted after a power outage. Check the mysql_error.log file inside xampp/mysql/data: the final line usually contains the real clue.

If the error mentions InnoDB: Unable to lock ./ibdata1, stop the system MySQL service with net stop mysql and try again. If the problem is corruption, rename the data folder and copy the clean version from mysql/backup; you will lose the databases you created, so always export them beforehand if possible.

Error «Access denied for user ‘root’@’localhost'»

This message in phpMyAdmin is usually due to a password that changed and was not reflected in the configuration. Open xampp/phpMyAdmin/config.inc.php and check the lines $cfg[‘Servers’][$i][‘password’] and [‘auth_type’]. If you forgot the root password, stop MySQL, start the console with mysqld –skip-grant-tables, run ALTER USER ‘root’@’localhost’ IDENTIFIED BY »; and restart the service.

Blank page or error 500 when loading a project

A PHP file that shows nothing normally hides a syntax error with display_errors disabled. Edit php.ini, set display_errors=On and error_reporting=E_ALL, save, and restart Apache. It is also worth enabling log_errors to check apache/logs/error.log, where failures are recorded even if the website does not display them.

phpMyAdmin returns «The mbstring extension is missing»

When updating XAMPP or migrating an old php.ini, some extensions remain commented out. Look in the file for the lines extension=mbstring, extension=mysqli, and extension=pdo_mysql and remove the leading semicolon. Save and restart Apache for the changes to take effect.

Message «XAMPP is not installed correctly» on Windows 10 or 11

It appears when the program was installed in C:Program Files without adequate permissions or with a path containing special characters. Uninstall it and place XAMPP in C:xampp again, running the installer by right-clicking and selecting «Run as administrator.» Avoid accents and spaces in the path.

The control panel does not respond

If the XAMPP window freezes on startup, close all xampp-control.exe processes from Task Manager and relaunch it as administrator. Sometimes the xampp-control.ini file becomes corrupted; delete it and the program will regenerate a new one with default values.

Before making any changes, back up the htdocs and mysql/data folders: they are the two places where your work lives. With those copies and the steps above, most XAMPP issues are resolved in a few minutes without needing to format the environment.