{"id":14576,"date":"2024-10-09T05:02:41","date_gmt":"2024-10-09T02:02:41","guid":{"rendered":"https:\/\/www.sunucun.com.tr\/blog\/?post_type=dt_articles&#038;p=14576"},"modified":"2026-11-08T13:14:06","modified_gmt":"2026-11-08T10:14:06","slug":"what-is-xampp","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/","title":{"rendered":"What Is XAMPP? XAMPP Installation, Usage and Fixing Apache\/MySQL Not Starting"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#What_Is_XAMPP_Used_For\" >What Is XAMPP Used For?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Components_Included_in_XAMPP\" >Components Included in XAMPP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Installing_XAMPP_Windows\" >Installing XAMPP (Windows)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Using_XAMPP_htdocs_and_phpMyAdmin\" >Using XAMPP: htdocs and phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Installing_WordPress_on_XAMPP\" >Installing WordPress on XAMPP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#XAMPP_Apache_Wont_Start_Port_Conflict\" >XAMPP Apache Won&#8217;t Start: Port Conflict<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#XAMPP_MySQL_Wont_Start\" >XAMPP MySQL Won&#8217;t Start<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Other_Common_Problems\" >Other Common Problems<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#XAMPP_Alternatives\" >XAMPP Alternatives<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Moving_a_Project_From_XAMPP_to_a_Live_Server\" >Moving a Project From XAMPP to a Live Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-xampp\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\"><strong>XAMPP<\/strong> is a free, open-source package that sets up a local web server on your computer. Its name comes from the initials of its components: <strong>X<\/strong> (cross-platform), <strong>A<\/strong>pache, <strong>M<\/strong>ariaDB (formerly MySQL), <strong>P<\/strong>HP and <strong>P<\/strong>erl. With XAMPP you can build and test sites that use PHP and a database, such as WordPress, on your own computer without putting them online. In this article we explain what XAMPP is used for, how to install it on Windows step by step, how to use htdocs and phpMyAdmin, how to install WordPress on XAMPP, and how to fix the common &#8220;Apache won&#8217;t start&#8221; and &#8220;MySQL won&#8217;t start&#8221; errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_XAMPP_Used_For\"><\/span>What Is XAMPP Used For?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ul class=\"wp-block-list\"><li><strong>Local development:<\/strong> You run and test a PHP site on your own computer before uploading it to a live server.<\/li><li><strong>Learning:<\/strong> It is a free, risk-free environment for learning PHP, SQL and how a web server works.<\/li><li><strong>Trying out a CMS:<\/strong> You can test systems such as WordPress, Joomla or OpenCart, along with themes and plugins, without breaking a live site.<\/li><li><strong>Database work:<\/strong> With phpMyAdmin you create databases, run SQL queries, and take and restore backups.<\/li><\/ul>\n\n\n<p class=\"wp-block-paragraph\">XAMPP is a <strong>development<\/strong> tool, not meant for production. Apache Friends also notes that the default settings are kept loose for ease of development; for example, the database administrator account (root) has no password by default. To put a real site online, use <a href=\"https:\/\/sunucun.com.tr\/hosting\/\" data-internallinksmanager029f6b8e52c=\"126\" title=\"Web bar\u0131nd\u0131rma paketlerini inceleyin\">hosting<\/a> or a server with properly configured security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Components_Included_in_XAMPP\"><\/span>Components Included in XAMPP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<p class=\"wp-block-paragraph\">As of November 2026, the Windows packages on the Apache Friends download page include:<\/p>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Component<\/th><th>Version<\/th><th>Role<\/th><\/tr><\/thead><tbody><tr><td>Apache<\/td><td>2.4.65<\/td><td>Web server; answers requests from the browser.<\/td><\/tr><tr><td>MariaDB<\/td><td>10.11.16<\/td><td>MySQL-compatible database server. It still appears as &#8220;MySQL&#8221; in the control panel.<\/td><\/tr><tr><td>PHP<\/td><td>8.5.12 \/ 8.4.27 \/ 8.3.36 (depending on the package)<\/td><td>Server-side programming language.<\/td><\/tr><tr><td>phpMyAdmin<\/td><td>5.2.3<\/td><td>Browser interface for managing databases.<\/td><\/tr><tr><td>Strawberry Perl<\/td><td>5.42.1.1<\/td><td>Runs Perl scripts.<\/td><\/tr><tr><td>Others<\/td><td>\u2014<\/td><td>OpenSSL, XAMPP Control Panel 3.3.0, FileZilla FTP Server, Mercury Mail, Tomcat, Webalizer.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">The download page currently lists only Windows builds; older versions for Linux and macOS are available under &#8220;More Downloads&#8221;. If you want to know how MariaDB and PHP work together, see our articles <a href=\"https:\/\/sunucun.com.tr\/blog\/what-is-mysql\/\">What is MySQL<\/a> and <a href=\"https:\/\/sunucun.com.tr\/blog\/integrating-mysql-with-php-accessing-and-managing-mysql-databases-with-php\/\">integrating MySQL with PHP<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_XAMPP_Windows\"><\/span>Installing XAMPP (Windows)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ol class=\"wp-block-list\"><li><strong>Download:<\/strong> Download the package matching the PHP version your project needs, only from the official site <a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noopener\">apachefriends.org<\/a>. If you are not sure, choose the latest version; for an older project, choose the PHP version that project supports.<\/li><li><strong>Start the installer:<\/strong> Run the downloaded <code>.exe<\/code> file. If you see an antivirus or User Account Control (UAC) warning, take note of the message advising you not to install XAMPP in <code>C:Program Files<\/code>.<\/li><li><strong>Select components:<\/strong> Keep Apache, MySQL, PHP and phpMyAdmin ticked. You can untick FileZilla, Mercury, Tomcat and Perl if you do not need them.<\/li><li><strong>Installation folder:<\/strong> Use the default <code>C:xampp<\/code> folder. Do not install under Program Files, to avoid write-permission problems.<\/li><li><strong>Finish the installation<\/strong> and choose to start the control panel on the last screen. If Windows Firewall asks for permission for Apache, allowing it for &#8220;Private networks&#8221; is enough.<\/li><li><strong>Start the services:<\/strong> In the XAMPP Control Panel, press the <strong>Start<\/strong> buttons on the Apache and MySQL rows. The module names turn green.<\/li><li><strong>Test:<\/strong> Open <code>http:\/\/localhost<\/code> in your browser; if the XAMPP welcome page appears, the installation is complete. <code>http:\/\/localhost\/phpmyadmin<\/code> opens phpMyAdmin.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_XAMPP_htdocs_and_phpMyAdmin\"><\/span>Using XAMPP: htdocs and phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ul class=\"wp-block-list\"><li><strong>Where do files go?<\/strong> Your site files go in the <code>C:xampphtdocs<\/code> folder. For example, <code>htdocsmyprojectindex.php<\/code> opens in the browser at <code>http:\/\/localhost\/myproject\/<\/code>.<\/li><li><strong>If a PHP file shows as code in the browser,<\/strong> do not open it by double-clicking; always open it through <code>http:\/\/localhost\/...<\/code>. PHP only runs through Apache.<\/li><li><strong>Creating a database:<\/strong> In phpMyAdmin click <strong>New<\/strong>, type the database name, choose <code>utf8mb4_unicode_ci<\/code> or <code>utf8mb4_general_ci<\/code> as the collation and press <strong>Create<\/strong>. For backups and restores, see our article on MySQL database backup and restore.<\/li><li><strong>PHP settings:<\/strong> Use <strong>Config \u2192 PHP (php.ini)<\/strong> on the Apache row of the control panel to change values such as <code>upload_max_filesize<\/code> and <code>memory_limit<\/code>. Stop and restart Apache after the change.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_WordPress_on_XAMPP\"><\/span>Installing WordPress on XAMPP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ol class=\"wp-block-list\"><li>Download the latest WordPress ZIP from wordpress.org and extract it to <code>C:xampphtdocswordpress<\/code>.<\/li><li>In phpMyAdmin, create a new database called <code>wordpress<\/code>.<\/li><li>Open <code>http:\/\/localhost\/wordpress<\/code> in the browser and choose a language.<\/li><li>On the database details screen, enter database name <code>wordpress<\/code>, username <code>root<\/code>, an empty password and host <code>localhost<\/code>.<\/li><li>Set the site title, admin username and password, and finish the installation. The dashboard is at <code>http:\/\/localhost\/wordpress\/wp-admin<\/code>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"XAMPP_Apache_Wont_Start_Port_Conflict\"><\/span>XAMPP Apache Won&#8217;t Start: Port Conflict<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<p class=\"wp-block-paragraph\">Apache uses ports <strong>80<\/strong> (HTTP) and <strong>443<\/strong> (HTTPS) by default. If another program is using one of these ports, the control panel shows a warning such as &#8220;Port 80 in use by &#8230;&#8221; or &#8220;Apache shutdown unexpectedly&#8221;.<\/p>\n\n\n<ol class=\"wp-block-list\"><li><strong>Find out who is using the port:<\/strong> The <strong>Netstat<\/strong> button in the control panel, or the command <code>netstat -ano | findstr :80<\/code> in Command Prompt, shows the PID of the process using the port. In Task Manager&#8217;s <strong>Details<\/strong> tab you can see which program that PID belongs to.<\/li><li><strong>Stop that program:<\/strong> Common culprits are IIS (World Wide Web Publishing Service), another local server package (WAMP, Laragon) or some virtualization and remote access software.<\/li><li><strong>Or change Apache&#8217;s port:<\/strong> In <strong>Config \u2192 Apache (httpd.conf)<\/strong> on the Apache row, change <code>Listen 80<\/code> to <code>Listen 8080<\/code> and <code>ServerName localhost:80<\/code> to <code>ServerName localhost:8080<\/code>. If 443 conflicts, change <code>Listen 443<\/code> to, for example, <code>4433<\/code> in <strong>Config \u2192 Apache (httpd-ssl.conf)<\/strong>. Save and start Apache; the site now opens at <code>http:\/\/localhost:8080<\/code>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"XAMPP_MySQL_Wont_Start\"><\/span>XAMPP MySQL Won&#8217;t Start<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ol class=\"wp-block-list\"><li><strong>Check the error log:<\/strong> <strong>Logs \u2192 mysql_error.log<\/strong> on the MySQL row tells you the real cause, and shows which of the steps below you need.<\/li><li><strong>Port 3306 may be taken:<\/strong> If a separate MySQL or MariaDB service is installed on the computer, XAMPP&#8217;s MySQL cannot start. Check with <code>netstat -ano | findstr :3306<\/code>; stop the other service in <strong>services.msc<\/strong> or change the <code>port=3306<\/code> values in XAMPP&#8217;s <code>my.ini<\/code> file.<\/li><li><strong>Corruption after an unexpected shutdown:<\/strong> If MySQL will not start after a power cut or forced shutdown, the data files may be damaged. Before touching anything, copy the whole <code>C:xamppmysqldata<\/code> folder somewhere else. Then repair according to the message in the error log; see our article on <a href=\"https:\/\/sunucun.com.tr\/blog\/mysql-error-debugging-finding-and-fixing-mysql-errors\/\">MySQL error debugging<\/a> for troubleshooting steps.<\/li><li><strong>Run as administrator:<\/strong> If the control panel is not opened with administrator rights, installing services and some file operations may fail.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Other_Common_Problems\"><\/span>Other Common Problems<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<ul class=\"wp-block-list\"><li><strong>localhost will not open \/ &#8220;Not Found&#8221;:<\/strong> Check that Apache is running, add the port number to the address if you changed it (<code>localhost:8080<\/code>), and make sure the file really is under <code>htdocs<\/code>.<\/li><li><strong>phpMyAdmin says &#8220;Access denied&#8221;:<\/strong> If you gave the root user a password, you also need to put the same password in the <code>$cfg['Servers'][$i]['password']<\/code> line of <code>C:xamppphpMyAdminconfig.inc.php<\/code>.<\/li><li><strong>PHP errors are not shown:<\/strong> During development set <code>display_errors = On<\/code> and <code>error_reporting = E_ALL<\/code> in php.ini; turn this off on a live server.<\/li><li><strong>Updating XAMPP:<\/strong> XAMPP has no self-update feature. Back up your <code>htdocs<\/code> folder and your databases (by exporting them from phpMyAdmin), install the new version in a separate folder and move your data there.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"XAMPP_Alternatives\"><\/span>XAMPP Alternatives<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Tool<\/th><th>Main feature<\/th><\/tr><\/thead><tbody><tr><td>WampServer<\/td><td>Windows only; switching between several PHP versions is easy.<\/td><\/tr><tr><td>Laragon<\/td><td>Windows; lightweight, creates an automatic local domain for each project.<\/td><\/tr><tr><td>MAMP<\/td><td>macOS and Windows; popular among Mac users.<\/td><\/tr><tr><td>Docker<\/td><td>Runs each project in its own container, in an environment very close to the live server. See <a href=\"https:\/\/sunucun.com.tr\/blog\/server-virtualization-docker\/\">server virtualization with Docker<\/a>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Moving_a_Project_From_XAMPP_to_a_Live_Server\"><\/span>Moving a Project From XAMPP to a Live Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<p class=\"wp-block-paragraph\">To publish a site you built locally, upload the files to the server with <a href=\"https:\/\/sunucun.com.tr\/blog\/ftp-what-is\/\">FTP<\/a> or your hosting panel&#8217;s file manager, export the database from phpMyAdmin and import it into the database on the server. Then replace the database details in the configuration file (<code>wp-config.php<\/code> in WordPress) with the server&#8217;s, and in WordPress also replace the <code>http:\/\/localhost\/...<\/code> addresses with your real domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<p class=\"wp-block-paragraph\">XAMPP is a free tool that installs Apache, MariaDB, PHP and Perl in one package and lets you develop PHP-based sites on your own computer. After downloading it from the official site and installing it in <code>C:xampp<\/code>, you put your files in <code>htdocs<\/code> and run them at <code>http:\/\/localhost<\/code>. If Apache will not start, port 80\/443 is usually taken by another program; if MySQL will not start, check the error log first and back up the data folder. Use XAMPP only for development, and choose a server with configured security for live sites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XAMPP is a free, open-source package that sets up a local web server on your computer. Its name comes from the initials of its components: X (cross-platform), Apache, MariaDB (formerly MySQL), PHP and Perl. With XAMPP you can build and test sites that use PHP and a database, such as WordPress, on your own computer&hellip;<\/p>\n","protected":false},"author":1,"featured_media":14574,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1521],"tags":[1527],"class_list":["post-14576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teknoloji","tag-teknoloji"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=14576"}],"version-history":[{"count":2,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14576\/revisions"}],"predecessor-version":[{"id":19868,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14576\/revisions\/19868"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/14574"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=14576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=14576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=14576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}