{"id":2471,"date":"2017-06-16T12:04:32","date_gmt":"2017-06-16T12:04:32","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=2471"},"modified":"2021-03-20T07:43:00","modified_gmt":"2021-03-20T07:43:00","slug":"how-to-install-php-on-windows-10","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-install-php-on-windows-10\/","title":{"rendered":"How to install PHP on Windows 10"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>On this page, we will learn how to install PHP on Windows 10 PC. The main steps to download PHP windows binary,extract the files, append to the PATH variable and verify the install.<\/p>\n<h3>Download PHP<\/h3>\n<p>Download PHP zip file from the URL:<\/p>\n<p><a href=\"https:\/\/windows.php.net\/download\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/windows.php.net\/download<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2476\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download.png\" alt=\"PHP Install\" width=\"1916\" height=\"992\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download.png 1916w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download-300x155.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download-1024x530.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download-768x398.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-7.4-Download-1536x795.png 1536w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<h3><\/h3>\n<h3>Install PHP<\/h3>\n<p>Extract the files from the .zip file. Copy the folder to a favorable location for example: c:\\php<\/p>\n<p>Open command prompt and verify PHP.<\/p>\n<p><strong>&gt; php.exe -version<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2478\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt.png\" alt=\"PHP version\" width=\"1817\" height=\"996\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt.png 1817w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt-300x164.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt-1024x561.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt-768x421.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PHP-Version-Command-Prompt-1536x842.png 1536w\" sizes=\"auto, (max-width: 1817px) 100vw, 1817px\" \/><\/p>\n<h3>Append to the PATH variable<\/h3>\n<p>We can add the PHP path to the PATH environment variable.<\/p>\n<p>Open Control Panel &gt;&gt; System and Security &gt;&gt; System<\/p>\n<p>Click on Advance System Settings.<\/p>\n<p>Click on Environment Variables.<\/p>\n<p>Select PATH and edit the variable.<\/p>\n<p>Add the PHP path to the variable. For example c:\\php.<\/p>\n<p>Save the setting by clicking on the OK button..<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-2471\" data-postid=\"2471\" class=\"themify_builder_content themify_builder_content-2471 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Introduction On this page, we will learn how to install PHP on Windows 10 PC. The main steps to download PHP windows binary,extract the files, append to the PATH variable and verify the install. Download PHP Download PHP zip file from the URL: https:\/\/windows.php.net\/download &nbsp; Install PHP Extract the files from the .zip file. Copy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-2471","post","type-post","status-publish","format-standard","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=2471"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2471\/revisions"}],"predecessor-version":[{"id":19527,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2471\/revisions\/19527"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=2471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=2471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=2471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}