duanguangwang5829 2012-09-27 02:41 采纳率: 0%
浏览 183

php 5.4 mysql扩展无法正常工作

I installed PHP 5.4.6 via Remi repo using yum (CentOS 5 64 bit)

I ran this as well "yum --enablerepo=remi --disablerepo=base,updates install php54-mysql" and it says it worked, but when i try to start PHP-FPM, it says this

>Starting php-fpm: [26-Sep-2012 21:28:09] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 
>[26-Sep-2012 21:28:09] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 
>[26-Sep-2012 21:28:09] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 

i looked for "libmysqlclient.so.15" but all i found was "libmysqlclient.so.18" on the server

also if it helps im using nginx and mysql 5.5

  • 写回答

1条回答

  • doujiaohuo1096 2012-09-27 04:03
    关注

    You may do this, find your php.ini file and add this variable(If exist and change it.):

    extension_dir = "/path/to/some/folder"
    

    then put your all .so files in /path/to/some/folder path.

    then restart apache, test it

    You may look this link, I had also hard time with php+mysql integration. https://askubuntu.com/questions/174509/connection-failed-to-open-the-db-connection-could-not-find-driver

    评论

报告相同问题?

悬赏问题

  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站