Php-config Introduction

Source: Internet
Author: User
Tags php cli
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.