![]() ![]() Your requirements could not be resolved to an installable set of packages. Installing dependencies (including require-dev) from lock file Loading composer repositories with package information Open PowerShell or another terminal emulator (I generally prefer cmder), and type in php -v to verify PHP is working.Īt this point, you should see output like:.Click OK, then OK, then OK, and close out of the System Control Panel.Click on the Path row under 'System variables', and click 'Edit.'.Click the 'Environment Variables.' button.Add C:\PHP7 to your Windows system path:.In the section where there are a bunch of extension= lines, uncomment the following lines:.Uncomment the line that reads extension_dir = "ext" (remove the so the line is just extension_dir = "ext").Change memory_limit from 128M to 1G (because Composer can use lots of memory!).Change the following settings in the file and save the file:.Edit the php.ini file in a text editor (e.g.In the C:\PHP7 folder, rename the file php.ini-development to php.ini.Configure PHP to run correctly on your system:.Expand the zip file into the path C:\PHP7.zip file version of the VC14 圆4 Non Thread Safe edition, under the PHP 7.1 heading. I prefer to use 7.1.x (current release - 1), so I downloaded the latest Non-thread-safe 64-bit version of 7.1.x. If you don't do this, you'll run into a rather cryptic error message, VCRUNTIME140.DLL was not found, and php commands won't work. Install the Visual C++ Redistributable for Visual Studio 2015-this is linked in the sidebar of the PHP for Windows Download page, but it's kind of hidden.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. ![]() ![]() 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. However, on Windows there seem to crop up little issues here and there. For macOS and Linux, getting PHP and Composer installed is fairly quick and easy. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |