Hey folks, are you looking tutorial for "How to Download and Install PHP on Windows 10" - If yes, then stay tuned with this article because today we will guide you step by step for PHP download and installation on windows pc.
PHP is a recursive acronym used for PHP: Hypertext Preprocessor. At early times, the PHP is used as an acronym for Personal Home Page. PHP is a scripting programming language developed by Rasmus Lerdorf in 1994. And in 1995, PHP language was publically released. PHP programming language is an easy to learn and easy to use programming language. PHP programming language was developed as an open source programming language which means that it can be used and download by anyone for free from its official website. PHP programming language offers simple, secure and independent scripting platform. PHP programming language can be easily embedded into HTML. In comparison to other programming languages PHP scripting language is a fast programming language. PHP programming language is widely used in developing static and dynamic web and web applications.
Now, let's dive into the PHP download and installation tutorial for windows.
How to install PHP on Windows 10
Here, we will discuss the step by step guide to download and install PHP on Windows 10 PC. So, let's start!
• Search "PHP download" on browser
For downloading PHP, simply go to browser and type "PHP" on searching bar and press enter. After pressing enter, you will get to see many search results- just click on first link that is "PHP: Hypertext Preprocessor".
• Download PHP zip file
Now the official website is here, you can see latest php version 8.1.0 Alpha 3 is available for testing but you can go with php stable update (ie. PHP 8.0.8). For downloading PHP 8.0.8 zip file, simply click on "Downloads" button then search for PHP 8.0.8 and click on "Windows downloads".
After clicking on Windows downloads, you can see PHP is available in different versions (Thread safe and Non- thread safe). Always go with thread safe version, now search PHP thread safe version and click on "zip" link to download PHP. It will hardly be a 25 mb file.
After clicking on zip link, php will automatically download on your windows PC. Wait a few seconds until the php zip file is downloaded in your pc. Or click here to download php for windows.
• Extract PHP zip file
Now, you can see PHP is successfully downloaded in PC "downloads folder". Now you have to extract PHP zip file into new folder, for this just open the "downloads folder" then right click on PHP zip file and choose "extract to PHP8.0.8-win32-VS16 x64" option to extract php file in new folder.
After choosing this option PHP zip file will automatically extract in new folder. After waiting for few seconds new "PHP8.0.8-win32-VS16" folder will appear in "downloads folder".
• Move PHP folder in Local disc (C:)
In this step, you have to merge php extracted folder in Local disc (C:) i.e. Programming file folder. For that, simply copy PHP extracted folder > go to Local disc (C:) > Programming files and paste it on Programming files folder.
Now, you can see copy processing from downloads to programing files will be shown on your PC screen.
• Setup PHP Environment Variable
After moving the php file to the programming file folder, you need to set the environment variable to run php. It's quite very simple, firsty go to This PC > local disc (C:) > Programming files > PHP 8.0.8-Win32-VS16×64 and copy the folder location path in clipboard.
Then go to PC Settings and click on "System properties". Here, you will see the option of Environment Variables, on which you have to open it by simply clicking on it.
Now, you have to create new php path, for this click on path > New > Paste the location path of PHP8.0.8-Win32-VS16×64 (which you copied to clipboard earlier) - after this save the setup by clicking on "OK" button.
• Check if PHP is setup on Windows
Huraahhh!! PHP is successfully installed on your Windows 10. For checking PHP has setup on you PC, go to Windows menu > Command prompt > type "php --version" and press enter. If PHP is setup successful on your Windows PC then you will see something like this;
Conclusion
Above we have discussed about step by step guide for php download and installation on windows pc. PHP is a recursive acronym used for PHP: Hypertext Preprocessor. At early times, the PHP is used as an acronym for Personal Home Page. PHP is a scripting programming language developed by Rasmus Lerdorf in 1994. And in 1995, PHP language was publically released. PHP programming language is an easy to learn and easy to use programming language. PHP programming language was developed as an open source programming language which means that it can be used and download by anyone for free from its official website. PHP programming language offers simple, secure and independent scripting platform. By following these above mentioned steps anyone can easily download and install PHP on windows PC. I hope this information will be helpful to you all.