Phpize Adding PHP Modules

Source: Internet
Author: User

One, the benefits of Phpize

When are we going to use phpize? When we install PHP:

'./configure '--prefix=/usr/local/php '--with-mysql=/usr/local/mysql '--with-zlib-dir '--with-freetype-dir=/ usr '--with-jpeg-dir=/usr '--with-png-dir=/usr '--enable-gd-native-ttf '--with-gd '--enable-ftp '--with-iconv ' '--with-gettext '--with-curl '--enable-fastcgi '--with-openssl '

The parameters behind the root are the modules we want, but as we work, we need to add some modules and we don't want to recompile PHP, so we can use phpize.

Second, install the PHP module

Let me take the soap installation as an example

Cd/home/tmp/php-5.2.6/ext/soap #ext目录下面放的是php的模块库

/usr/local/php/bin/phpize

#确定php-config file is not in, call Php-config, after installation. So file is automatically put into Extension_dir

./configure--enable-soap--with-php-config=/usr/local/php/bin/php-config

Make && make install

After the installation, there will be something like this.

See all operating system documentation about GKFX libraries for
More information, such as the LD (1) and ld.so (8) manual pages.
----------------------------------------------------------------------

Build complete.
Don ' t forget to run ' make test '.

Installing shared extensions:usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/

Third, view. So files, and modify PHP.ini

cd/usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/

Ls-al |grep Soap

-rwxr-xr-x 1 root root 763334 Feb 9 10:51 soap.so

Vi/etc/php.ini

Extension_dir= "usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/"

Extension=soap.so

Four, re-starting Apache or phpcgi or other

Phpize Adding PHP Modules

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.