
In addition, PHP also needs bison re2c and pkg-config can be installed, we can install them directly via apt: sudo apt install build-essential bison re2c pkg-config -y We can install a package called build-essential.

In Ubuntu 16.04 LTS, there is no built-in C and C++ build environment by default. The following are the most critical practical experience.įirst, we prepare the compilation environment. Generally speaking, for this kind of software that requires source code to compile and install, you need to prepare the compilation environment and libraries that the program needs to rely on before installation. Unzip and spare: tar -zxvf php-7.2.0.tar.gz

Go directly to the official website of PHP: php.net to find the download link of the latest versionįind a folder on the server and use wget to download the source code package of PHP: wget -O php-7.2.0.tar.gz

Recently, I also want to reinstall the VPS again, which coincides with the release of the latest PHP 7.2.0 version (December 14, 2017) of PHP, so just install the latest version of PHP directly. The last article () talked about so many complicated concepts, now let me talk about how to use it in practice.
