Note: If you want to install and use PHP 7 and Composer within the Windows Subsystem for Linux (WSL) using Ubuntu, I wrote a guide for that, too!
I am working a lot on Composer-based Drupal projects lately (especially gearing up for DrupalCon Nashville and my joint workshop on Drupal and Composer with Matthew Grasmick), and have been trying to come up with the simplest solutions that work across macOS, Linux, and Windows. For macOS and Linux, getting PHP and Composer installed is fairly quick and
easy. However, on Windows there seem to crop up little issues here and there. Since I finally spent a little time getting the official version of PHP for native Windows installed, I figured I'd document the process here. Note that many parts of this process were learned from the concise article Install PHP7 and Composer on Windows 10 from the website KIZU 514. Install PHP 7 on Windows 10
At this point, you should see output like:
This means PHP is working, yay! Install Composer on Windows 10Next, we're going to install Composer by downloading it and moving it into place so we can run it with just the
That's it! Now you have PHP 7 and Composer running natively on your Windows 10 PC. Next up, dominate the world with some new PHP projects!
Further readingHow can I download php7?Step 1. Download Apache server from www.apache.org/dist/httpd/binaries/win32. ... . Extract the PHP binary archive using your unzip utility; C:\php7 is a common location.. Rename php.. How do I manually download PHP?How to Install PHP. Step 1: Download the PHP files. You'll need the PHP Windows installer. ... . Step 2: Extract the files. ... . Step 3: Configure php. ... . Step 4: Add C:\php to the path environment variable. ... . Step 5: Configure PHP as an Apache module. ... . Step 6: Test a PHP file.. How do I download and install latest version of PHP?Follow the below steps to install PHP on Windows: Step 1: Visit https://www.php.net/ website using any web browser and click on Downloads. Step 2: Click on the Windows “Downloads” button. Step 3: The new webpage has different options, choose the Thread safe version, and click on the zip button and Download it.
How do I install PHP on Windows 7 64 bit?Step 1: Install MySQL. Install the MySQL database server on your PC. ... . Step 2: Install Apache. Install the Apache web server on your PC. ... . Step 3: Install PHP. Now install the PHP scripting language on your PC. ... . Step 4: Configure Apache and PHP. ... . Step 5: Test your install. ... . Step 6: Install Git. ... . Step 7: Install Moodle.. |