About the installation of PHP plugin Pdo_mysql

Source: Internet
Author: User

Today, when you are making a connection to a mall, you need mpdo verification. Need to install pdo_mysql module, just start according to the installation of PHP expansion module According to this installation Zip,curl have succeeded, but install Pdo_mysql but not, in ./configure--with-php-config=/usr/local/php/bin/php-config is an error occurred. as follows

Checking for re2c ... no configure:WARNING:You would need re2c 0.13.4 or later if you want to regenerate PHP parsers. Checking for gawk ... gawk checking for MySQL support for PDO ... yes, gkfx checking for the location of libz ... no Checki ng for mysql_config ... not found configure:error:Unable to find your MySQL installation can't find MySQL

Finally found a solution:

This compiles:./configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usr/local/mysql on it, Then follow this PHP expansion module to install

PHP compiled and installed from: http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=11526&highlight=php%C0%A9%D5%B9%C4% A3%bf%e9

Extension Module Compilation installation
/usr/local/php/bin/php-m
Enter the PHP source package directory/usr/local/src/php-5.4.36
CD ext/
Take Curl for example
/usr/local/php/bin/php-m |grep-i Curl
cd/curl/
Ls
/usr/local/php/bin/phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make
Make install
Ls/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/curl.so
/usr/local/php/bin/php-i |grep Extension_dir
Vim/usr/local/php/etc/php.ini
Extension=php_shmop.dll (The following information is added below the line)
Extension=curl.so
Save exit
: Nohl Cancel Highlight (Vim interface)
grep ' extension= '/usr/local/php/etc/php.ini (view modules for installation dynamics)

About the installation of PHP plugin Pdo_mysql

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.