How Much To Install New Plumdomain_7
Installing PHP 7 and Composer on Windows 10, Natively
Annotation: If you lot want to install and utilise 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 (specially 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 piece of 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 ingather up little issues hither and at that place.
Since I finally spent a picayune 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 seven on Windows 10
- Install the Visual C++ Redistributable for Visual Studio 2022—this is linked in the sidebar of the PHP for Windows Download page, but information technology's kind of hidden. If you don't do this, you'll run into a rather ambiguous error bulletin,
VCRUNTIME140.DLL was non establish, andphpcommands won't work. - Download PHP for Windows. I adopt to utilize 7.1.x (current release - 1), so I downloaded the latest Non-thread-prophylactic 64-fleck version of 7.1.x. I downloaded the .zip file version of the
VC14 x64 Non Thread Prophylacticedition, under the PHP 7.ane heading. - Expand the zippo file into the path
C:\PHP7. - Configure PHP to run correctly on your system:
- In the
C:\PHP7folder, rename the filephp.ini-developmenttophp.ini. - Edit the
php.inifile in a text editor (e.g. Notepad++, Cantlet, or Sublime Text). - Change the following settings in the file and save the file:
- Change
memory_limitfrom128Mto1G(because Composer tin can use lots of retention!) - Uncomment the line that reads
; extension_dir = "ext"(remove the;so the line is justextension_dir = "ext"). - In the section where there are a bunch of
extension=lines, uncomment the following lines:-
extension=php_gd2.dll -
extension=php_curl.dll -
extension=php_mbstring.dll -
extension=php_openssl.dll -
extension=php_pdo_mysql.dll -
extension=php_pdo_sqlite.dll -
extension=php_sockets.dll
-
- Change
- In the
- Add together
C:\PHP7to your Windows system path:- Open the System Control Panel.
- Click 'Advanced System Settings'.
- Click the 'Environs Variables...' button.
- Click on the
Pathrow under 'Organisation variables', and click 'Edit...' - Click 'New' and add the row
C:\PHP7. - Click OK, and then OK, and then OK, and close out of the System Control Panel.
- Open up PowerShell or another last emulator (I generally prefer cmder), and blazon in
php -5to verify PHP is working.
At this indicate, you lot should encounter output like:
PS C:\Users\jgeerling> php -5Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PHP 7.0.29 (cli) (built: Mar 27 2022 fifteen:23:04) ( NTS )
Copyright (c) 1997-2017 The PHP Grouping
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
This means PHP is working, yay!
Install Composer on Windows 10
Side by side, we're going to install Composer by downloading it and moving it into place so we tin run information technology with simply the composer command:
- Download the Windows Installer for Composer and run it.
- Notation that the Windows Installer for Composer might ask to make changes to your
php.inifile. That's okay; let it and continue through the setup sorcerer. - Close out of any open PowerShell or other concluding windows, and so open a new one.
- Run the
composercommand, and verify y'all get a listing of the Composer help and available commands.
That's information technology! Now y'all take PHP vii and Composer running natively on your Windows ten PC. Next up, boss the world with some new PHP projects!
Source: https://www.jeffgeerling.com/blog/2018/installing-php-7-and-composer-on-windows-10
Posted by: fuentesvill1978.blogspot.com

0 Response to "How Much To Install New Plumdomain_7"
Post a Comment