Post actualizado el día octubre 29, 2026 by DeiviSanzPlay
XAMPP is the most widely used local server package for developing with PHP and MySQL. Its simple installation doesn’t make it immune to failures, and finding the right XAMPP error solution can consume hours if the source isn’t identified. This guide reviews the most common issues and how to resolve them step by step.
Apache won’t start: the classic port 80 in use
The «Apache shutdown unexpectedly» message is usually due to another program already listening on port 80 or 443. Skype, IIS, or the «World Wide Web Publishing» service are common suspects. Open a console as administrator and run netstat -ano | findstr :80. The resulting PID is identified with Task Manager. Alternatives: close the conflicting process or change the port in httpd.conf (Listen and ServerName lines) to 8080. Remember to also adjust the URL: http://localhost:8080.
MySQL stops immediately
If the panel shows MySQL in red, check the mysql_error.log file inside xampp/mysql/data. Typical causes are port 3306 being occupied by another MySQL or MariaDB instance, or a corrupted ibdata1 file after an abrupt shutdown. For the first, edit my.ini and assign 3307. For the second, restore the data folder from a backup and avoid copying tables while they’re in use.
«Access denied for user root» error
This occurs when the root password changed and phpMyAdmin still keeps the old one. Edit config.inc.php in phpmyadmin and update $cfg[‘Servers’][$i][‘password’]. If you forgot the password, stop MySQL, start it with the –skip-grant-tables option from the XAMPP console, and reset access with ALTER USER ‘root’@’localhost’ IDENTIFIED BY »;.
The page shows a 403 or 404 error
The 403 appears when the project folder lacks read permissions or there is no index. Verify that the files are in htdocs and that httpd.conf includes the Require all granted directive. The 404 is usually caused by a misspelled path or an .htaccess file with incompatible rewrite rules; enable mod_rewrite by removing the comment from the LoadModule rewrite_module line.
PHP doesn’t load extensions
Errors like «Call to undefined function mysqli_connect» indicate that the extension is disabled. Open php.ini (the one indicated by the panel, not always the one in the php folder) and remove the semicolon from extension=mysqli or extension=gd. Restart Apache to apply the changes.
UAC or antivirus messages
On Windows, XAMPP requires elevated permissions to write to its folders. Install it outside Program Files, for example in C:xampp. Some antivirus programs block httpd.exe; add an exclusion for the entire directory.
Errors when starting the Control Panel
If the panel closes or shows a blank screen, check that the Visual C++ Redistributable are up to date. Running xampp-control.exe as administrator also helps, as does disabling the «Check for updates» option if the corporate network blocks the check.
Best practices to avoid failures
- Stop Apache and MySQL from the panel before shutting down the computer.
- Export the databases regularly through phpMyAdmin.
- Don’t move XAMPP between drives without checking the paths in httpd.conf and my.ini.
- Keep a stable version: betas break compatibility with extensions.
With these steps, most issues are resolved without reinstalling. If the problem persists, check the logs (apache/error.log, mysql_error.log): they almost always point to the exact cause before any forum does.