Home  >  Article  >  Backend Development  >  How to install and deploy php7.0

How to install and deploy php7.0

藏色散人
藏色散人Original
2022-11-30 09:56:057441browse

php7.0 installation and deployment method: 1. Go to the PHP official website to download the installation version corresponding to the local system; 2. Extract the downloaded zip file to the specified directory; 3. Open the command line window and click on " Just run the "php -v" command in the E:\php7" directory.

How to install and deploy php7.0

#The operating environment of this tutorial: Windows 7 system, PHP version 7.0, Dell G3 computer.

How to install and deploy php7.0?

Install and deploy PHP 7.0 local development environment under Windows          

1. Install pure PHP 7 locally

PHP official website http://windows.php.net/download#php-7.0 Download the installation version corresponding to the local system:

How to install and deploy php7.0

If it is a 32-bit system, download the x86 version , download for 64-bit systems like 64-bit systems.

Extract the downloaded zip file to the specified directory. For example, I extracted it to E:/php7, and then run the following command in the directory to view the PHP version information:

php -v
How to install and deploy php7.0##This is because the VC14 runtime environment has not been installed. You need to go to the Microsoft official website http://www.microsoft.com/zh-CN/download/details.aspx?id= 48145 Download the corresponding software and install it:

How to install and deploy php7.0Click the download button to enter the version selection page:

How to install and deploy php7.0Select the corresponding check box according to your Windows system version (select x86 for 32-bit, For 64-bit, select x64), then click Next to start the download. After the download is completed, install the downloaded file.

After the installation is complete, open the command line window and run it again in the

E:\php7 directory php -v:

How to install and deploy php7.0Okay , it’s that simple. We can put

E:\php7 in the system path if necessary.

Of course, in Windows we usually use PHP integrated software to build a local development environment. The good news is that xampp has provided the corresponding test version.

2. Use XAMPP to build a PHP 7.0 local development environment

Visit the XAMPP official website:

https://www.apachefriends.org/zh_cn/index.html , you can see the following interface:

How to install and deploy php7.0##Click on the Windows version of PHP 7 integrated software package, and the page will jump to a new page:

Currently, the 7.0 version of the integrated development environment is still in the development stage. Click "Download" to download. After the download is complete, double-click the downloaded file How to install and deploy php7.0bitnami-wampstack-7.0.0-0-dev-windows-installer.exe

to install. After the installation is completed, check the integrated environment installation directory:

Double-click How to install and deploy php7.0manager-windows.exe

to open the management window, select the "Manage Servers" option Check the running status of MySQL and Apache on the card:

In addition, the application directory is located in the How to install and deploy php7.0apache2/htdocs

directory of the installation directory by default. We will create a new test.php in this directory. And edit the content as follows: <pre class="brush:php;toolbar:false">在浏览器中访问 http://localhost/test.php,页面显示如下(部分截图): OK,集成环境安装成功,Enjoy it!</pre> Recommended learning: "

PHP Video Tutorial

"

The above is the detailed content of How to install and deploy php7.0. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn