How do I configure php to enable pdo and include mysqli on CentOS?

前端 未结 2 1132
南笙
南笙 2020-12-09 09:24

PHP Version 5.3.3 on CentOS (x86_64, RHEL 6)

Apparently my PHP installation was configured to exclude Mysqli and disable PDO for some reason. Therefore, I believe th

相关标签:
2条回答
  • 2020-12-09 10:04

    mysqli is provided by php-mysql-5.3.3-40.el6_6.x86_64

    You may need to try the following

    yum install php-mysql-5.3.3-40.el6_6.x86_64
    
    0 讨论(0)
  • 2020-12-09 10:15

    You might just have to install the packages.

    yum install php-pdo php-mysqli
    

    After they're installed, restart Apache.

    httpd restart
    

    or

    apachectl restart
    
    0 讨论(0)
提交回复
热议问题