Summery
XAMPP is a web-server stack that bundles Apache, PHP, MySQL/MariaDB, and phpMyAdmin for running web applications locally. It’s often used for styding and testing, It’s mainly designed as a convenient development environment rather than a production platform.
It’s name is actually an acronym:
X - Cross-platform (Windows, Linux, macOS)
A - Apache HTTP Server
M - MariaDB / MySQL database
P - PHP scripting language
P - Perl scripting language
Directories
As XAMPP is basically a bundle of several separate server applications, each major component gets its own directory and in them, there are some interesting files worth checking out:
-
Apache
C:\xampp\apache\- Apache web server. The main executable is containshttpd.exewhich can also run as a service calledApacheServer.
C:\xampp\apache\conf\- Apache’s configuration directory. Important files includehttpd.conf, which controls ports, modules, document root, logging, virtual hosts, authentication, and other server behavior.
C:\xampp\apache\bin\- Apache’s executables and DLLs. It containshttpd.exe, supporting executables, and DLL dependencies. For pentesting, writable files here can matter for executable or DLL hijacking. -
MySQL
C:\xampp\mysql\- MySQL/MariaDB database server. The main executable ismysqld.exewhich can also run as a service calledMySQL.
C:\xampp\mysql\bin\- MySQL executables and supporting DLLs.mysqld.exeis the database-server executable.
C:\xampp\mysql\data\- Actual database files and contents; potentially sensitive.
C:\xampp\mysql\bin\my.ini- MySQL configuration file; useful for discovering ports, paths, authentication settings, and other configuration. -
PHP
C:\xampp\php\- PHP interpreter used to execute PHP applications. The main executable isphp.exe, Apache can load PHP through its module.
C:\xampp\php\php.ini- Main PHP configuration; inspect enabled extensions and security settings. -
phpMyAdmin
C:\xampp\phpMyAdmin\- Web interface for managing MySQL/MariaDB databases. It runs through Apache and PHP.
C:\xampp\phpMyAdmin\config.inc.php- phpMyAdmin configuration; may contain database connection credentials. -
htdocs
C:\xampp\htdocs\- Apache’s web root. PHP applications and other website files placed here can be accessed through the web server. Pay extra attention here as these are the main web server files, especially for conifg files! -
FileZilla
C:\xampp\FileZilla\- FileZilla FTP server. Main executable is typicallyfilezilla-server.exe. Provides FTP functionality and can run as a Windows service calledFileZilla Server. -
Tomcat
C:\xampp\Tomcat\- Apache Tomcat Java application server. Main executable is typicallytomcat.exe. It runs Java-based web applications and can run as a Windows service calledTomcatorTomcat9, depending on the installed Tomcat and XAMPP versions.
Note:
Although it’s XAMPP, there could be more places.