PHP Extension Installation Phpize

Source: Internet
Author: User

The Phpize command is a compilation environment that prepares the PHP extension installation. Used to manually compile and install the PHP extension. Generally use PECL to install PHP extensions. If PECL cannot be installed, such as behind a firewall, or the extension to be installed does not have a Compatibility pack in PECL. Manually compile the installation using Phpize. Phpize is typically installed in PHP's Bin directory by default with this PHP installation. View version
$./bin/phpize-v Configuring for:php API Version:         20100412Zend Module API No:      20100525Zend Extension API No:   220100525

  

2. Phpize install extensions such as installing MONGO PHP extensions. Download and Decompress first:
wget--no-check-certificate "Https://github.com/mongodb/mongo-php-driver/archive/master.zip" Unzip master CD Mongo-php-driver-master

  

Run Phpize
/home/gang/php/bin/phpize
Start installation
./configure--with-php-config=/home/work/gang/php/php/bin/php-config make && make install

  

The mongo.so file is generated in the PHP extentsion directory. After the installation is successful, you need to add "extension=mongo.so" to the php.ini. It is then viewed through bin/php-m, which has MONGO extensions in the list. Then restart Apache to use it.

PHP Extension Installation Phpize

Related Article

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.