Php module added in phpize

Source: Internet
Author: User
Tags zts
Phpize adds php module 1. what does phpize do? Phpize is used to expand the php Extension Module. can phpize be used to establish a php plug-in module? When should we use phpize? When installing php:. configure -- prefixusrlocalphp -- with-mysqlusrlocalmysql -- with-z phpize

I. What does phpize do?

Phpize is used to expand the php Extension Module. phpize can be used to establish a php plug-in module.

?

When should we use phpize?

When installing 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 following root parameters are the modules we need. However, as we need to add some modules and don't want to re-compile php, we can use phpize.

?

II. how to use phpize?

After php compilation is complete, the php bin directory contains the phpize script file. Run the following phpize command before compiling the extension module you want to add;

?

Install the php module

Below is an example of soap installation.

Cd/home/zhangy/php-5.2.6/ext/soap ??????????????? # The ext directory contains the php module library.

/Usr/local/php/bin/phpize

# Make sure that the php-config file is not in use. call php-config. after installation, The. so file will be automatically placed in extension_dir.

./Configure -- enable-soap? -- With-php-config =/usr/local/php/bin/php-config

Make & make install

This will happen after installation.

See any operating system documentation about shared libraries
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-20060613/

3. view the. so file and modify php. ini.

D/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/

Ls-al | grep soap

-Rwxr-xr-x 1 root? Root ?? 763334 Feb? 9 soap. so

Vi/usr/local/php/lib/php. ini

Add a line of extension = soap. so to the place where the module is loaded.

4. restart apache, phpcgi, or other

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.