VOOZH about

URL: https://www.geeksforgeeks.org/php/how-to-install-php-in-windows-10/

⇱ How to install PHP in Windows 10? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to install PHP in Windows 10?

Last Updated : 9 Sep, 2024

PHP is a general-purpose scripting language geared towards web development. It is an open-source software (OSS), which is free to download and use. PHP stands for "Hypertext Preprocessor". PHP files are saved with an extension called .php. It supports many databases MySQL, Oracle, etc.

Installation of PHP on Windows

Follow the below steps to install PHP on Windows:

Step 1: Visit website using any web browser and click on Downloads.

👁 Image

Step 2: Click on the Windows "Downloads" button.

👁 Image

Step 3: The new webpage has different options, choose the Thread safe version, and click on the zip button and Download it.

👁 Image

Step 4: Now check for the zip file in downloads in your system and extract it.

👁 Image

Step 5: After extracting, you get the extracted folder.

👁 Image

Step 6: Now copy the extracted folder.

👁 Image

Step 7: Now paste the copy folder in your windows drive in the Program files folder.

👁 Image

Step 8: Now the Permission Windows appears to paste the folder in program files then click on "Continue".

👁 Image

Step 9: Now after pasting the folder then copy the address of the folder in program files.

👁 Image

Step 10: Now click on Start Menu and search "Edit the system environment variables" and open it.

👁 Image

Step 11: After opening System, Variable New window appears, and click on "Environment Variables..."

👁 Image

Step 12: Now go to the "System variables" Path option and double click on Path.

👁 Image

Step 13: Next screen will open and click on the "New" button.

👁 Image

Step 14: After New  Paste the address we copy from program files to new and click on Enter button.

👁 Image

Step 15: Now Click on the OK button.

👁 Image

Step 16:  Click on the OK button. 

👁 Image

Step 17: Click on OK for saving changes.

👁 Image

Step 18: Now your PHP is installed on your computer. You may check by going to the "Start" menu typing Command Prompt. Open it.

👁 Image

Step 19: When the Command Prompt opens, type php -v

👁 Image

Step 20: Now enter the command prompt to show the version of PHP installed on your computer.

👁 Image

Finally, You have successfully installed PHP on your Windows 10 system.

Comment
Article Tags: