Get the App
SLTechnology News&Howtos  ›  Servers  › 

Source code installation php

Shulou Source: shulou.com Published: 2022-06-03 04:52:36 10月03日 Update

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

Tags: Source code compilation instructions directories detectors things locations names commands platforms usefulness features targets programs scripts paths facets configurations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Xiaomi Apple Docker