{"id":3252,"date":"2025-02-19T20:32:10","date_gmt":"2025-02-19T20:32:10","guid":{"rendered":"https:\/\/foghosting.com\/learn-how-to-install-apache-php-and-mysql-on-windows-10\/"},"modified":"2025-02-19T20:32:10","modified_gmt":"2025-02-19T20:32:10","slug":"learn-how-to-install-apache-php-and-mysql-on-windows-10","status":"publish","type":"post","link":"https:\/\/foghosting.com\/blog\/learn-how-to-install-apache-php-and-mysql-on-windows-10\/","title":{"rendered":"Learn How to Install Apache, PHP, and MySQL on Windows 10"},"content":{"rendered":"<div id=\"content\">\n<div role=\"main\">\n<div>\n<figure><\/figure>\n<\/div>\n<div>\n<h2><span id=\"Introduction\"><strong>Introduction<\/strong><\/span><\/h2>\n<p>Many users these days are wondering whether to run Apache, PHP, and MySQL on Windows 10 systems. If this is your case too, then you have come up with the perfect place to be. In this guide, we will be providing straightforward instructions to let you know how to install Apache, PHP, and MySQL on Windows 10 system smoothly. To do so, you have the following two possible options \u2013<\/p>\n<ul>\n<li>First, you can make use of ready-to-use packages such as WampServer, XAMPP, etc.\u00a0<\/li>\n<li>Or, secondly, you can create your own completely functioning WAMP server (Manual Installation).<\/li>\n<\/ul>\n<p>So, you must have understood that we will be moving towards explaining the installation of MySQL, Apache, and PHP servers on your Windows 10 PC manually. Keep a note that this tutorial is designed on <strong>Windows 10 Pro 64-bit. <\/strong>Moreover, the versions of the applications that we will install are \u2013\u00a0<\/p>\n<ul>\n<li>Apache 2.4.29<\/li>\n<li>MySQL 5.7.21<\/li>\n<li>PHP 7.2.3<\/li>\n<\/ul>\n<p>It will be best if you go through the complete instructions first before executing them. Dive into the sections below and get all the insights!\u00a0<\/p>\n<h2><span id=\"Install_MySQL_on_Windows_10_Pro_64-bit\"><strong>Install MySQL on Windows 10 Pro 64-bit<\/strong><\/span><\/h2>\n<figure><\/figure>\n<p>Here are the instructions to follow for <strong>installing MySQL on Windows 10 Pro 64-bit<\/strong> \u2013<\/p>\n<ol>\n<li>First of all, download the MySQL 5.7.21 installer.\u00a0<\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"2\">\n<li>When the installer is downloaded, click on Run.<\/li>\n<li>Then, you need to select the <strong>License Agreement<\/strong> and click on the Next option.<\/li>\n<li>Further, you need to select <strong>Server Only<\/strong> and then, again click on Next.<\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"5\">\n<li>In the next step, the system will prompt you to install Visual Studio 2013 on your system. You can click on the <strong>Execute<\/strong> button.<\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"6\">\n<li>Next, select the <strong>License agreement<\/strong> and click on <strong>Install.<\/strong><\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"7\">\n<li>Then, the steps will be clicking on the options as<strong> Close>Next>Execute>Next>Next.<\/strong><\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"8\">\n<li>After this, you will be prompted to enter the root user password. You can then confirm the password and click on <strong>Next.<\/strong><\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"9\">\n<li>At last, you need to click on the options as <strong>Next><\/strong> <strong>Next><\/strong> <strong>Finish.<\/strong><\/li>\n<\/ol>\n<figure><\/figure>\n<p>After getting done with these steps, your MySQL database server will be ready to use. You can further make use of any MySQL client software to manage your database, such as Heidi SQL, SQL YOG, etc.<\/p>\n<h2><span id=\"Install_Apache_24_on_Windows_10_Pro_64-bit\"><strong>Install Apache 2.4 on Windows 10 Pro 64-bit<\/strong><\/span><\/h2>\n<figure><\/figure>\n<p>Follow the steps below for<strong> installing Apache<\/strong> on Windows 10 Pro 64-bit \u2013<\/p>\n<ol>\n<li>First of all, you need to install the latest C++ Redistributable Visual Studio 2017.\u00a0<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Then, you have to download Apache files and unzip them (archive httpd-2.4.25-win64-VC14.zip) to the <strong>C:Apache24 directory<\/strong>.<\/li>\n<\/ol>\n<figure><\/figure>\n<ol start=\"3\">\n<li>Once you unzip them, you can go to the folder <strong>c:Apache24conf<\/strong> and open the <strong>httpd.conf<\/strong> file through any text editor.<\/li>\n<li>Now, you have to modify the below line in this file \u2013<\/li>\n<\/ol>\n<p>#ServerName www.example.com:80<\/p>\n<p><strong>ServerName localhost<\/strong><\/p>\n<figure><\/figure>\n<p># AllowOverride controls what directives may be placed in .htaccess files.<\/p>\n<p># It can be \u201cAll\u201d, \u201cNone\u201d, or any combination of the keywords:<\/p>\n<p># AllowOverride FileInfo AuthConfig Limit<\/p>\n<p><strong>AllowOverride None<\/strong><\/p>\n<p># AllowOverride controls what directives may be placed in .htaccess files.<\/p>\n<p># It can be \u201cAll\u201d, \u201cNone\u201d, or any combination of the keywords.<\/p>\n<p># AllowOverride FileInfo AuthConfig Limit<\/p>\n<p><strong>AllowOverride All<\/strong><\/p>\n<p>#LoadModule rewrite_module modules\/mod_rewrite.so<\/p>\n<p><strong>LoadModule rewrite_module modules\/mod_rewrite.so<\/strong><\/p>\n<ol start=\"5\">\n<li>Then, you need to register for Apache service.\u00a0<\/li>\n<\/ol>\n<p>At last, your Apache will be installed on your Windows system successfully. You can further make modifications to the index page code or upload your files.\u00a0<\/p>\n<p>Also Read: How to Enable or Install Telnet on Windows 10 or 11?<\/p>\n<h2><span id=\"Install_PHP_on_Windows10\"><strong>Install PHP on Windows10<\/strong><\/span><\/h2>\n<figure><\/figure>\n<p>Mentioned below are the <strong>steps to install PHP 7.2.3 on your Windows 10<\/strong> Pro 64-bit \u2013<\/p>\n<ol>\n<li>Firstly, you need to download the PHP package PHP-7.1.1RC1-Win32-VC14-x64.zip and unzip it under C:php72.<\/li>\n<li>Then, you need to rename php-ini-development.ini to php.ini.<\/li>\n<li>Further, you have to add PHP in a system environment variable.<\/li>\n<\/ol>\n<p>C:>setx path \u201c%PATH%, C:php72\u201d \/M<\/p>\n<ol start=\"4\">\n<li>Next, you need to open the file <strong>c:Apache24confhttpd.conf<\/strong> again and append it with lines \u2013<\/li>\n<\/ol>\n<p>PHPIniDir \u201cC:\/PHP72\u201d<\/p>\n<ol start=\"5\">\n<li>AddHandler application\/x-httpd-php .php<\/li>\n<\/ol>\n<p>LoadModule php7_module \u201cC:\/PHP72\/php7apache2_4.dll\u201d<\/p>\n<ol start=\"6\">\n<li>At last, you have to restart Apache services.<\/li>\n<\/ol>\n<p>After having done all these steps, you will be able to access your PHP page from the default Apache document root.\u00a0<\/p>\n<p>Also Read: How To Remove or Delete MySQL User or Database Account?<\/p>\n<h2><span id=\"Summing_Up\"><strong>Summing Up<\/strong><\/span><\/h2>\n<p>Going through this guide thoroughly can help one <strong>learn how to install Apache, PHP, and MySQL on Windows 10 <\/strong>system perfectly. Moreover, you can always connect to the Fog Hosting experts in case you face any issues during the installation process via various communication channels.<\/p>\n<\/p><\/div>\n<div>\n<div>\n<h3>Arpit Saini<\/h3>\n<p>\n\t\t\t\t\tHe is the Director of Cloud Operations at Fog Hosting and also follows a passion to break complex tech topics into practical and easy-to-understand articles. He loves to write about Web Hosting, Software, Virtualization, Cloud Computing, and much more.\t\t\t\t<\/p>\n<\/p><\/div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Many users these days are wondering whether to run Apache, PHP, and MySQL on Windows 10 systems. If this is your case too, then you have come up with the perfect place to be. In this guide, we will be providing straightforward instructions to let you know how to install Apache, PHP, and MySQL<\/p>\n","protected":false},"author":3,"featured_media":3076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-3252","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dedicated-servers"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/posts\/3252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/comments?post=3252"}],"version-history":[{"count":0,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/posts\/3252\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/media\/3076"}],"wp:attachment":[{"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/media?parent=3252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/categories?post=3252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/foghosting.com\/blog\/wp-json\/wp\/v2\/tags?post=3252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}