Source code installation php
Download php source code: https://www.php.net/downloads.php
II. Tar decompression source code
III. Compilation
1. / configure is used to detect the target characteristics of your installation platform. For example, it will check if you have CC or GCC, it doesn't need CC or GCC, it's a shell script.
2. Make is used to compile. It reads instructions from Makefile and then compiles.
3. Make install is used to install. It also reads instructions from Makefile and installs to the specified location.
Note: AUTOMAKE and AUTOCONF are very useful for publishing C programs.
Simplify the php command
1. Vim ~ / .bash_profile adds path 2 to alias php=php and source ~ / .bash_profile takes effect.
5.
1. Find out which directory the php.ini configuration should be placed in: php-I | grep php.ini 2, php.ini-development: cp php.ini-development / usr/local/soft/php/lib 3 under the directory where the php source code is copied, and change the name to php.ini