Many times, after we compile and install PHP, we need to recompile the installation, but the original compilation parameters do not remember, through the Php-config command can be easily retrieved, in addition, php-config there are many other useful features.
Let's take a look at the other features of Php-config:
Option Description
--prefix
Directory prefix where PHP is installed, e.g./usr/local
The path to the PHP installation, which is the value of the prefix parameter of the compiled installation
--includes
List of-i options with all include files
--Ldflags
LD Flags which PHP is compiled with
--Libs
Extra libraries which PHP is compiled with
The external library to which the compilation is used
--Extension-dir
Directory where extensions is searched by default
Extended storage directory, pecl after compiling can go to this directory to view
--Include-dir
Directory prefix where header files is installed by default
Header file path
--php-binary
Full path to PHP CLI or CGI binary
PHP Binary Executable Directory
--Php-sapis
Show all SAPI modules available
--configure-options
Configure options to recreate configuration of the current PHP installation
PHP compile-time parameters for installation
--version
PHP version
--Vernum
PHP version As Integer
Php-config When we recompile the installation of PHP or compile the installation of PECL extension is very useful, because there may be a lot of PHP version of the system, this command can help us to accurately locate the current use of the version, can accurately view the PHP compiled installation information.
Related recommendations:
The role of Php-config under PHP directory
Linux-How to find php-config files
Configure:error:Cannot find Php-config.