search
HomeBackend DevelopmentPHP7How to install PHP7.2 source code

This article will introduce to you how to install PHP7.2 source code. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to install PHP7.2 source code

1. Download the installation package of php7.2 version

1. Download

2 .Upload to the root directory of the server

pwd: View the current directory

ll: View the files in the current directory

2. Unzip

tar -xjvf php-7.2.18.tar.bz

三.configure(compile)

cd php-7.2.18

./configure --prefix=/home/work /study

IV.make(build)

make

make test

5.make install

Some commands for Linux operations on php

cd php——Enter php

cd ..——Enter the upper-level directory

.bin/php -m to view its extension

##vi test.php ——Create a test.php folder

echo time();

:wq——Save and exit

Press esc to command mode

Press i to edit text mode

1.:w Save the file but do not exit vi

2.:w file Save the modifications to file. Do not exit vi

3, :w! Force save, do not exit vi

4., :wq Save the file and exit vi

5, :wq! Force save the file , and exit vi

6, :q do not save the file, exit vi

7, :q! do not save the file, force exit vi

./bin/php test.php ——Execute

6. Simplify php execution command

1. Edit .bash_profile in the root directory File (vi ~/.bash_profile)

#2.source ~/.bash_profile

3.php -v

Test

Summary: What pitfalls will you encounter when installing PHP source code?

1.gcc autoconfig——If it is not compiled, the system will prompt that you need to install these two software

2. The compiled file does not have a php.ini file

cp php.ini-development /home/work/study/ect/——Copy to the compiled folder

mv php.ini-development php.ini——Change the name

Changed the configuration of php.ini and it does not take effect

php -i |grep php.ini

So move php.ini to lib

mv ./etc/php.ini ./lib

Recommended learning:

php video tutorial

The above is the detailed content of How to install PHP7.2 source code. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:CSDN. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use