Phpize introduction _ PHP Tutorial

Source: Internet
Author: User
Phpize introduction. Phpize is a part of php-devel. it mainly sets some settings of the php plug-in module. for example, your php does not support mysql, mbstring, and other instance applications: the php5.2.6 environment, mysql extension phpize is not supported in php-devel. it is mainly used to set some settings of the php plug-in module.

For example, your php does not support mysql or mbstring.

Instance application:
The php5.2.6 environment does not support mysql extension
Assume that the php source code package is in the/usr/local/src/php-5.2.6
The php installation directory is/usr/local/php.

# Cd/usr/local/src/php-5.2.6
# Cd./ext/mysql
#/Usr/local/php/bin/phpize

#./Configure-with-php-config =/usr/local/php/bin/php-config
# Make
# Make install
At this time, you will see that mysql. so is copied to a directory, copy mysql. so to the path pointed to by your extension_dir, and add extension = mysql. so in php. ini.
Restart the web server and check phpinfo. mysql is supported!

Note: Some errors may be prompted when executing/usr/local/php/bin/phpize, for example, Cannot find autoconf. install the relevant software according to the error prompt, the RHEL series uses yum-y install autoconf.
Other errors. please leave a message to me!

Therefore, php-devel related suites can be installed with phpize (files are pre-stored in/usr/bin/phpize)
The phpize command is used to prepare the compiling environment of the PHP plug-in module. In the following example, the source program of the plug-in module is located in the extname Directory:
# Cd extname
# Phpize
#./Configure (note 1)
# Make
# Make install
After successful installation, extname. so is created and placed in the directory of the PHP plug-in module (pre-stored in/usr/lib/php/modules ).
You must adjust php. ini and add extension = extname. so to use this plug-in module.


From miyae

Http://www.bkjia.com/PHPjc/478278.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478278.htmlTechArticlephpize is a php-devel in the thing, mainly set some php plug-in module settings such as your php does not support mysql, mbstring and other instance applications: environment php5.2.6, mysql extension not supported...

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.