Home >Backend Development >PHP Tutorial >Introduction to phpize, the automatic management tool for PHP extensions

Introduction to phpize, the automatic management tool for PHP extensions

小云云
小云云Original
2018-03-12 11:26:201930browse


About the automatic management tool phpize for PHP extensions. It can generate the corresponding system file information (sys_config) based on the configuration file (config) under the downloaded extension. I hope it can help. Everyone.

For example, install the mamcache extension file under php

    tar zxvf memcache-2.2.5.tgz
    cd memcache-2.2.5/    /usr/local/webserver/php/bin/phpize
    ./configure –with-php-config=/usr/local/webserver/php/bin/php-config
    make
    make install

After completion, open the extension in the php.ini file, extension = “memcache.so”;
Restart apache or nignx;

He can generate the corresponding system file information (sys_config) based on the configuration file (config) under the downloaded extension

For example, install the mamcache extension file under php

    tar zxvf memcache-2.2.5.tgz
    cd memcache-2.2.5/    /usr/local/webserver/php/bin/phpize
    ./configure –with-php-config=/usr/local/webserver/php/bin/php-config
    make
    make install

After completion Open the extension in the php.ini file, extension = “memcache.so”;
Restart apache or nignx;

Detailed explanation of phpize extension installation example under Linux

What is phpize

php7 Installing the extension phpize did not generate the configure file

The above is the detailed content of Introduction to phpize, the automatic management tool for PHP extensions. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn