{"id":945,"date":"2018-12-13T12:50:17","date_gmt":"2018-12-13T12:50:17","guid":{"rendered":"https:\/\/www.hostkarle.in\/blog\/?p=945"},"modified":"2018-12-21T17:38:26","modified_gmt":"2018-12-21T17:38:26","slug":"how-to-install-php-and-apache-on-windows","status":"publish","type":"post","link":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows","title":{"rendered":"How to install php 7 and apache on windows 10"},"content":{"rendered":"<p>We hope you <a href=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-apache-and-configure-on-windows-10\"><strong>installed and setup apache web server on your windows<\/strong><\/a> pc, if you&#8217;ve followed our previous article then get ready for this one, because in this detailed article you are going to learn that <strong>what is php<\/strong>, <strong>why you should use php<\/strong> and how one can <strong>install php on his\/her windows<\/strong> operating system.<\/p>\n<p>So, here we go&#8230;<\/p>\n<h2><strong>What Is PHP?<\/strong><\/h2>\n<p>PHP stands for <u>HyperText Preprocessor<\/u>. It is a server-side scripting language used in web frameworks, web content management systems and in web development. Though, it is a scripting language, so it needs a web server like Apache to work. And, in this article we will use <u>apache web server to run php on our windows pc<\/u>.<\/p>\n<h2><strong>Why Use PHP?<\/strong><\/h2>\n<p>For learning, PHP is a simple language. And, it is easily connects with databases like MySQL which is required to develop powerful websites. And, the other merit of using PHP on Apache web server is that we can use our scripts and other learning work with actual no cost. Plus, for a beginner, it is a good pratice to go with PHP for testing and learning before making it live.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.hostkarle.in\/blog\/15-mobile-seo-friendly-wordpress-themes-for-2019\">15+ Mobile SEO Friendly WordPress Themes for 2019<\/a><\/li>\n<\/ul>\n<h2><strong>How To Install PHP On Your Windows Computer?<\/strong><\/h2>\n<p>Now its time to install PHP, so keep following our steps carefully&#8230;<\/p>\n<p>1) Visit <a href=\"https:\/\/www.php.net\/\"><strong>php.net<\/strong><\/a> and click on downloads<\/p>\n<p>2) Click on &#8220;<strong>Windows downloads<\/strong>&#8221; (because, we want for windows)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"931\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_20_46-pm1151264062-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_20_46-pm1151264062..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-931 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_20_46-pm1151264062..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>3) Now choose ZIP file of latest stable verison of PHP, according to your windows compatibility<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"932\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_21_51-pm266411796-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_21_51-pm266411796..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?fit=1024%2C576&amp;ssl=1\" class=\"wp-image-932 alignnone size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_21_51-pm266411796..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>4) Download it &amp; Extract the ZIP in a folder<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"933\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_26_35-pm1706749730-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_26_35-pm1706749730..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-933 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_26_35-pm1706749730..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>5) Now go to create a folder named PHP in C: drive (Local Disk C)<\/p>\n<p>6) And Paste the extracted files there<\/p>\n<p>7) Now in PHP folder, search for ini files<\/p>\n<p>8) There you will see two ini files ; <strong>php.ini-development<\/strong> and <strong>php.ini-production<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"934\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_28_23-pm238640886-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_28_23-pm238640886..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone size-full wp-image-934\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_28_23-pm238640886..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>9) Copy the <strong>php.ini-development<\/strong> and Paste it in any folder (For Backup)<\/p>\n<p>10) Now rename the file <strong>php.ini-development<\/strong> to <strong>php.ini<\/strong> (Confirm &#8220;<strong>Yes<\/strong>&#8220;, if any system warning pop-ups)<\/p>\n<p>11) Right click on <strong>php.ini<\/strong> and open in Notepad<\/p>\n<p>12) You will see the entire text in php.ini<\/p>\n<p>13) Now find &#8220;<strong>extension_dir =<\/strong>&#8221; (Use Ctrl + F)<\/p>\n<p>14) Replace the line with:<\/p>\n<blockquote style=\"text-align: center;\"><p><strong>extension_dir = &#8220;c:\\PHP\\ext&#8221;<\/strong><\/p><\/blockquote>\n<p>(Remove the prefix semicolon)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"936\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_34_18-pm623131584-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_34_18-pm623131584..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-936 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_34_18-pm623131584..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>[it specifies the ext folder inside the directory in which we installed PHP \u2013 c:\\PHP]<\/p>\n<p>15) Now again Find &#8220;<strong>Windows Extensions<\/strong>&#8221; &amp; you will get to see all extensions that should be loaded by PHP<\/p>\n<p>16) Since, we need to need activate the two extensions, so we will remove the semicolon before the extensions.<\/p>\n<blockquote style=\"text-align: center;\"><p><strong>extension=php_gd2.dll &#8230; extension=php_mysqli.dll<\/strong><\/p><\/blockquote>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"937\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_40_09-pm450158364-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_40_09-pm450158364..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-937 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_40_09-pm450158364..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>17) Save the <strong>php.ini<\/strong> (Use Ctrl + S)<\/p>\n<p>18) Now we need to add the variable for PHP in system path<\/p>\n<p>19) So, Go to <strong>Control Panel &gt; System and Security &gt; System &gt; Advance System Settings<\/strong><\/p>\n<p>20) Click &#8220;<strong>Environment Variables<\/strong>&#8221;<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"938\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_43_45-pm719417406-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_43_45-pm719417406..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-938 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_43_45-pm719417406..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>21) Select &#8220;<strong>Path<\/strong>&#8221; from the &#8220;<strong>System variables<\/strong>&#8221; section and click the &#8220;<strong>Edit<\/strong>&#8221; button<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"939\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_45_27-pm1566135275-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_45_27-pm1566135275..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-939 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_45_27-pm1566135275..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>22) Now add <strong>c:\\PHP<\/strong> as the new variable &amp; Click <strong>Ok<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"940\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-7_21_08-pm515512770-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-7_21_08-pm515512770..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-940 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_21_08-pm515512770..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>[For adding a new variable, i am using <strong>semicolon ( ; )<\/strong> for seperating variables]<\/p>\n<p>23) Now if you&#8217;ve Apache installed on your computer then, go to <strong>C: drive &gt; Apache24 &gt; conf<\/strong> and open the server\u2019s configuration file <strong>httpd.conf<\/strong> in Notepad<\/p>\n<p>24) Find &#8220;<strong>DirectoryIndex<\/strong>&#8221; &amp; add index.php in the line or replace the line with below:<\/p>\n<blockquote><p><strong>&lt; IfModule dir_module &gt;<\/strong><br \/>\n<strong>DirectoryIndex index.html index.php<\/strong><br \/>\n<strong>&lt; \/IfModule &gt;<\/strong><\/p><\/blockquote>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"942\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_54_46-pm134089824-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_54_46-pm134089824..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-942 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_54_46-pm134089824..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>25) Scroll down to the end of the <strong>httpd.conf<\/strong> file in Notepad &amp; add the following three lines :<\/p>\n<blockquote style=\"text-align: left;\"><p><strong>LoadModule php7_module &#8220;c:\/PHP\/php7apache2_4.dll&#8221;<\/strong><br \/>\n<strong>AddHandler application\/x-httpd-php .php<\/strong><br \/>\n<strong>PHPIniDir &#8220;c:\/PHP&#8221;<\/strong><\/p><\/blockquote>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"941\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-6_55_35-pm313802806-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-6_55_35-pm313802806..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone size-full wp-image-941\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-6_55_35-pm313802806..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>26) Save the file &amp; restart your computer (as we changed the variable)<\/p>\n<p>27) After doing it, go to C: drive and open Websites<\/p>\n<p>28) Create a new file in Notepad and add the following lines :<\/p>\n<blockquote><p><strong>&lt; ?php phpinfo(); ? &gt;<\/strong><\/p><\/blockquote>\n<p>29) Save the file as <strong>phpinfo.php<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"943\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-7_37_51-pm689869954-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-7_37_51-pm689869954..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-943 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_37_51-pm689869954..jpg?resize=700%2C394&amp;ssl=1 700w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>[Note: The file should be in <strong>.php<\/strong> format, else it won&#8217;t work]<\/p>\n<p>30) Finally, Open any web browser and type <strong>localhost\/phpinfo.php<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"944\" data-permalink=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\/screenshot-12_11_2018-7_38_08-pm23402064-jpg\" data-orig-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?fit=1366%2C768&amp;ssl=1\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screenshot-12_11_2018-7_38_08-pm23402064..jpg\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?fit=1024%2C576&amp;ssl=1\" class=\"alignnone wp-image-944 size-full\" src=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=1200%2C675&#038;ssl=1\" width=\"1200\" height=\"675\" srcset=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=100%2C56&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=700%2C394&amp;ssl=1 700w, https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/screenshot-12_11_2018-7_38_08-pm23402064..jpg?resize=1200%2C675&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>31) Hurray!! you successfully installed PHP on your windows computer.<\/p>\n<p>32) Enjoy!! \ud83d\ude0a<\/p>\n<ul>\n<li><a href=\"https:\/\/www.hostkarle.in\/blog\/how-to-create-high-quality-backlinks-for-seo-2019\">How To Create High Quality Backlinks For SEO 2019<\/a><\/li>\n<\/ul>\n<h3><strong>Conclusion:<\/strong><\/h3>\n<p>So, dear users&#8230; It was the complete guide on <strong>installing php on windows computer<\/strong>. We hope you got everything about installation of PHP. But, still if you&#8217;ve any confusion or issue in installing PHP then please comment here. We will try to sort out.<\/p>\n<p>Finally, keep sharing and keep visiting on <u><strong><a href=\"https:\/\/www.hostkarle.in\/\">Hostkarle<\/a><\/strong><\/u> for amazing content and service. Bye!!\ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We hope you installed and setup apache web server on your windows pc, if you&#8217;ve followed our previous article then get ready for this one, because in this detailed article you are going to learn that what is php, why you should use php and how one can install php on his\/her windows operating system. [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":1005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,200],"tags":[436,437,438],"class_list":["post-945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel-server","category-php-mysql","tag-how-to-install-php-on-windows-10","tag-how-to-install-php-on-windows-computer","tag-how-to-run-php-language-on-windows-pc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install php 7 and apache on windows 10 - HostKarle<\/title>\n<meta name=\"description\" content=\"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install php 7 and apache on windows 10 - HostKarle\" \/>\n<meta property=\"og:description\" content=\"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\" \/>\n<meta property=\"og:site_name\" content=\"HostKarle\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-13T12:50:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-21T17:38:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"How to install php 7 and apache on windows 10\",\"datePublished\":\"2018-12-13T12:50:17+00:00\",\"dateModified\":\"2018-12-21T17:38:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\"},\"wordCount\":739,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1\",\"keywords\":[\"how to install php on windows 10\",\"how to install php on windows computer\",\"how to run php language on windows pc\"],\"articleSection\":[\"Cpanel Server\",\"PHP MySQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\",\"url\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\",\"name\":\"How to install php 7 and apache on windows 10 - HostKarle\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1\",\"datePublished\":\"2018-12-13T12:50:17+00:00\",\"dateModified\":\"2018-12-21T17:38:26+00:00\",\"author\":{\"@id\":\"\"},\"description\":\"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1\",\"width\":1024,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hostkarle.in\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install php 7 and apache on windows 10\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostkarle.in\/blog\/#website\",\"url\":\"https:\/\/www.hostkarle.in\/blog\/\",\"name\":\"HostKarle\",\"description\":\"Hostkarle Blog offer solution for wordpress problems, cPanel issues, And Websites Errors Also You can Learn SEO in Hindi and much more.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostkarle.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/www.hostkarle.in\/blog\/author\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install php 7 and apache on windows 10 - HostKarle","description":"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows","og_locale":"en_US","og_type":"article","og_title":"How to install php 7 and apache on windows 10 - HostKarle","og_description":"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel","og_url":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows","og_site_name":"HostKarle","article_published_time":"2018-12-13T12:50:17+00:00","article_modified_time":"2018-12-21T17:38:26+00:00","og_image":[{"width":1024,"height":800,"url":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#article","isPartOf":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows"},"author":{"name":"","@id":""},"headline":"How to install php 7 and apache on windows 10","datePublished":"2018-12-13T12:50:17+00:00","dateModified":"2018-12-21T17:38:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows"},"wordCount":739,"commentCount":0,"image":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","keywords":["how to install php on windows 10","how to install php on windows computer","how to run php language on windows pc"],"articleSection":["Cpanel Server","PHP MySQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows","url":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows","name":"How to install php 7 and apache on windows 10 - HostKarle","isPartOf":{"@id":"https:\/\/www.hostkarle.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage"},"image":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","datePublished":"2018-12-13T12:50:17+00:00","dateModified":"2018-12-21T17:38:26+00:00","author":{"@id":""},"description":"How to install php 5.6, 7.0, 7.1 and 7.2 in windows 10 xampp Server , How to download and install php 32 and 64bit in linux centos, ubuntu,cpanel","breadcrumb":{"@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#primaryimage","url":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","width":1024,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostkarle.in\/blog\/how-to-install-php-and-apache-on-windows#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostkarle.in\/blog"},{"@type":"ListItem","position":2,"name":"How to install php 7 and apache on windows 10"}]},{"@type":"WebSite","@id":"https:\/\/www.hostkarle.in\/blog\/#website","url":"https:\/\/www.hostkarle.in\/blog\/","name":"HostKarle","description":"Hostkarle Blog offer solution for wordpress problems, cPanel issues, And Websites Errors Also You can Learn SEO in Hindi and much more.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostkarle.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"","url":"https:\/\/www.hostkarle.in\/blog\/author"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.hostkarle.in\/blog\/wp-content\/uploads\/2018\/12\/tb-1.jpg?fit=1024%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p99BIJ-ff","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/posts\/945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/comments?post=945"}],"version-history":[{"count":0,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/posts\/945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/media\/1005"}],"wp:attachment":[{"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/media?parent=945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/categories?post=945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostkarle.in\/blog\/wp-json\/wp\/v2\/tags?post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}