Home > Article > Backend Development > mysql - php cannot use pdo under CentOS6.5
I installed pdo and pdo_mysql, but pho still cannot be used. I don’t know why. Please help me. Thank you everyone
phpinfo()
Environment: CentOS 6.5
php: 5.6.24
Using the installation file in the php source package
Finally add the following content to php.ini and restart apache
<code>extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo.so extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so </code>
I installed pdo and pdo_mysql, but pho still cannot be used. I don’t know why. Please help me. Thank you all
phpinfo()
Environment: CentOS 6.5
php: 5.6.24
Using the installation file in the php source package
Finally add the following content to php.ini and restart apache
<code>extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo.so extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so </code>
Finally it’s because the php.ini path is wrong
extension=pdo.so;
extension=pdo_mysql.so;
If that doesn’t work +QQ 1065890063