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 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试