Php-pdo-linux Dynamic Loading

Source: Internet
Author: User
Php-pdo-linux dynamic loading-Linux Enterprise Application-Linux server application information. The following is a detailed description. If pdo encounters exception 'pdoexception' with message 'could not find driver 'in linux, the problem is that less -- with-pdo-mysql =/usr/local/mysql is added during php compilation.

# Wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz

# Tar xzvf PDO_MYSQL-1.0.2.tgz
# Cd PDO_MYSQL-1.0.2
#/Usr/local/php/bin/phpize
Processing ing:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
#./Configure
-- With-php-config =/usr/local/php/bin/php-config
-- With-pdo-mysql =/usr/local/mysql
# Make
# Make install

Note the full path of pdo_mysql
/Usr/local/php/lib/php/extensions/debug-non-zts-20060613/pdo_mysql.so

Modify php. ini
# Vi/usr/local/php/etc/php. ini

Add
Extension = pdo_mysql.so

Restart apache
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.