logo

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ
No Result
View All Result
logo
No Result
View All Result
Trang chủ installing php 7 and composer on windows 10, natively

INSTALLING PHP 7 AND COMPOSER ON WINDOWS 10, NATIVELY

by Admin _ September 18, 2022

In this guide we will install Composer và PHP on Windows 10 so that we can install dependencies for our web apps directly from Windows command line.

Bạn đang xem: Installing php 7 and composer on windows 10, natively


1. Download and Install Visual C++

In order khổng lồ run PHP on Windows 10, you will need khổng lồ install Visual C++ Redistributable for Visual Studio. You can tải về it from the Windows tải về page or click the direct liên kết below.Download: VC_redist.x64.exe (64 bit) or VC_redist.x86.exe (32 bit)Once downloaded, run the installer & click Install.Install Visual C++ Redistributable for Visual Studio 2015

2. Download and Extract PHP

Go to the Windows PHP download page and tải về the .zip of the version of PHP you require. In this guide, we are installing PHP 7.4 VC15 x64 Non Thread Safe, which is the latest version as of writing (Jan 2020).Once downloaded, create a new thư mục in c:php7 (or wherever you prefer) và extract your PHP zip to it.

PHP7 for Windows extracted

3. Download and Install Composer

Download Composer-Setup.exe from the Composer download page.In the second step of Composer Setup, make sure the correct path lớn php.exe is set & click Next.Installing Composer PHP Windows 10If setup prompts to lớn create php.ini, allow it and click Next.Skip the Proxy URL settings, just click Next then click Install.Click Finish once install is complete.

4. Thử nghiệm PHP

If you have any Command Prompt windows currently open, close them now.Open Command Prompt, type php -v and press Enter. You should now see the PHP version.Windows 10 PHP 7 in Command PromptIf it returns a PHP version, you can skip to lớn Step 6 to kiểm tra Composer.If you get an error “‘php’ is not recognized as an internal or external command,operable program or batch file.”, you may need to showroom a Path Environment Variable.

Xem thêm: Bí Quyết Tán Gái Thành Công Không Lo Bị Ế, Tán Gái Hơn Tuổi: Bí Quyết Thành Công (2020)

5. Add Path Environment Variable

Composer thiết đặt usually does this for you, but if for whatever reason it didn’t, you can set one up manually.So that you don’t have lớn type the whole path to php.exe every time you run a PHP command, you should địa chỉ cửa hàng c:php7 as a path environment variable.Open System Properties by clicking the start menu và typing sysdm.cpl và press Enter.Windows 10 view advanced system settingsIn System Properties, click Environment Variables.Windows 10 System PropertiesIn System Variables, click Path and then click Edit.

Click New, type the path to lớn your PHP thư mục (c:php7) & click OK.Add new path environment variable Windows 10Close the System Properties dialogue by clicking OK.

6. Kiểm tra Composer

Open up Command Prompt & type composer -V (that’s uppercase V).If all was installed correctly, you should see a version number.Composer in Windows 10 command promptHurrah! You can now run Composer và PHP on Windows 10.

Let me know if this helped. Follow me on Twitter, Facebook & YouTube, or

Share Tweet Linkedin Pinterest
Previous Post

Https www nuguri1 com list php index 605

Next Post

Tìm hiểu về php và mysql

CÙNG CHUYÊN MỤC

form register php

Form register php

09/04/2021
fantastic blog (cms) in php with source code

Fantastic blog (cms) in php with source code

28/04/2021
validate form php javascript

Validate form php javascript

28/04/2021
http diendanlequydon com viewtopic php style 6

Http diendanlequydon com viewtopic php style 6

28/04/2021
cách cài đặt php 7

Cách cài đặt php 7

24/01/2023
rövid videó

Rövid videó

23/01/2023
installing apache php mysql on ubuntu 18

Installing apache php mysql on ubuntu 18

20/01/2023
tính kế thừa trong oop php

Tính kế thừa trong oop php

20/01/2023

Newsletter

The most important automotive news and events of the day

We won't spam you. Pinky swear.

Chuyên Mục

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ

News Post

  • Bí quyết thành lập công ty

About

Chúng tôi tạo ra trang web nhằm mục đích mang lại kiến thức bổ ích cho cộng đồng, các bài viết được sưu tầm từ nhiều nguồn trên internet giúp mang lại kiến thức khách quan dành cho bạn

©2023 darkedeneurope.com - Website WordPress vì mục đích cộng đồng

Liên Hệ - Giới Thiệu - Nội Quy - Bảo Mật

No Result
View All Result
  • Trang chủ
  • Chuyên mục
    • Hỏi Đáp
    • Kiến Thức
    • Sức Khỏe
    • Tử Vi
    • Công Nghệ
  • Lưu trữ
  • Liên hệ

© 2023 darkedeneurope.com - Website WordPress vì mục đích cộng đồng.