{"id":14558,"date":"2020-06-08T12:22:04","date_gmt":"2020-06-08T12:22:04","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=14558"},"modified":"2022-05-08T12:07:19","modified_gmt":"2022-05-08T12:07:19","slug":"how-to-install-php-on-windows-10","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-install-php-on-windows-10\/","title":{"rendered":"How to Install PHP on Windows 10 ?"},"content":{"rendered":"\n<p>In this blog I am going to show you how to Install PHP 7 in Windows 10:<br>so, First thing you need to go show be in below<br><strong>https:\/\/windows.php.net\/download<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"699\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-in-windows-10.png\" alt=\"\" class=\"wp-image-14559\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-in-windows-10.png 895w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-in-windows-10-300x234.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-in-windows-10-768x600.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<p>Click on the Download link after that extract zip file in file explorer <strong>(Drive C) <\/strong>and create any file <strong>(PHP7)<\/strong>.<\/p>\n\n\n\n<p>Before copy this file &#8220;<strong>php-Copy.ini-development<\/strong>&#8221; and convert rename to &#8220;<strong>php.ini<\/strong>&#8221; after that open this file in the editor and find &#8220;<strong>extension_dir<\/strong>&#8221; and delete before; of a word like that (<strong>extension_dir = &#8220;ext&#8221;<\/strong>). So, when you download the original file line have <strong>; <\/strong>just like that you can delete (uncomment) as.<br>you can also scroll down and you preferred like this img and uncomment this line and save this file<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"638\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir.png\" alt=\"\" class=\"wp-image-14560\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir.png 898w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir-300x213.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir-768x546.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"638\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir1.png\" alt=\"\" class=\"wp-image-14561\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir1.png 561w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/extension_dir1-264x300.png 264w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/figure>\n\n\n\n<p>Go to <strong>control panel<\/strong> and type &#8220;variable&#8221; and you will this right system variable and open window on the popup and click on &#8220;<strong>environmental Variables<\/strong>&#8221; and scroll down and you will see &#8220;<strong>Path<\/strong>&#8221; and click on &#8220;<strong>edit<\/strong>&#8221; and &#8220;<strong>new<\/strong>&#8221; add path like that &#8220;<strong>C:\\PHP7<\/strong>&#8221; exactly like created file in &#8220;<strong>C drive<\/strong>&#8221; after that click &#8220;<strong>ok<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"548\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-environmental-variable-1-1024x548.png\" alt=\"\" class=\"wp-image-14563\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-environmental-variable-1-1024x548.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-environmental-variable-1-300x161.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-environmental-variable-1-768x411.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-environmental-variable-1.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Complete this process and &#8220;<strong>restart<\/strong> <strong>system<\/strong>&#8221; and open &#8220;<strong>Command Prompt<\/strong>&#8221; to check <strong>php<\/strong> version type &#8220;<strong>php -v<\/strong>&#8220;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"513\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-version.png\" alt=\"\" class=\"wp-image-14564\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-version.png 781w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-version-300x197.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-version-768x504.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/figure>\n\n\n\n<p>You should something like this. It means you installed php correctly.<\/p>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_33474\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_66586\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_33474\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In this blog I am going to show you how to Install PHP 7 in Windows 10:so, First thing you need to go show be in belowhttps:\/\/windows.php.net\/download Click on the Download link after that extract zip file in file explorer (Drive C) and create any file (PHP7). Before copy this file &#8220;php-Copy.ini-development&#8221; and convert rename&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[5150],"tags":[237,177,6228,182,5720],"class_list":["post-14558","post","type-post","status-publish","format-standard","hentry","category-php","tag-install","tag-php","tag-php7","tag-windows","tag-windows-10"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=14558"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14558\/revisions"}],"predecessor-version":[{"id":24780,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14558\/revisions\/24780"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=14558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=14558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=14558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}