Installing the PHP Extension Library

Source: Internet
Author: User

Unable to load ' pdo_mysql ' because the PDO module is required.
PHP warning:cannot Load module ' pdo_mysql ' because required module ' PDO ' is not loaded in Unknown on line 0

Steps

1. Enter the extension library ext under the Source installation library and enter the extension library to be installed as MySQL

/USR/LOCAL/PHP/BIN/PHPIZB Test

[Email protected] mysqlnd]#/usr/local/php/bin/phpize
Configuring for:
PHP Api version:20100412
Zend Module Api no:20100525
Zend Extension Api no:220100525

If this is the case, you can

Run the Configure file that you just generated

Phpize rule: in which directory to run the Phpize file, a configure file will be generated in that directory.

[Email protected] mysqlnd]#/configure--with-php-config=/usr/local/php/bin/php-config--with-mysqlnd

The key here is to tell the MySQL client's location via the--with-mysql parameter. This will generate mysql.so that can be passed. /configure--help View

[[email protected] mysqlnd]# make && make install

It's a normal reaction.
Installing Shared extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20100525/
Installing header files:/usr/local/include/php/

Go to the generated directory to locate the extended copy to the desired place in the php.ini configuration

Installing the PHP Extension Library

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.