Phpize Introduction _php Tutorial

Source: Internet
Author: User
Phpize is belong to the Php-devel, the main thing is to set the PHP plug-in module settings

For example, your PHP does not support MySQL, mbstring, etc.

Example application:
Environment php5.2.6, MySQL extension not supported
If PHP's source code package is/usr/local/src/php-5.2.6
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
This time you will see mysql.so copied to a directory, copy the mysql.so to your Extension_dir pointing path, add extension=mysql.so in php.ini
Restart the Web server, look at Phpinfo, should support MySQL, finished!

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

So install Php-devel related kit will have phpize can use (file presets stored in/usr/bin/phpize)
The Phpize command is used to prepare the compiler environment for the PHP plug-in module. In the following example, the source program for the plug-in module is located in the Extname directory:
# CD Extname
# phpize
#./configure (Note i)
# make
# make Install
A successful installation will be built extname.so and placed in the PHP plug-in module directory (preset to be stored in/usr/lib/php/modules/).
You need to adjust php.ini, add extension=extname.so this line before you can use this plug-in module.


Excerpted from Miyae

http://www.bkjia.com/PHPjc/478278.html www.bkjia.com true http://www.bkjia.com/PHPjc/478278.html techarticle Phpize is belong to the Php-devel, the main thing is to set some PHP plug-in module settings such as your PHP does not support MySQL, mbstring and other instances of the application: Environment php5.2.6, does not support MySQL extension ...

  • 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.