当前位置:网站首页>centos7.5下添加gd库然后mysql拓展库没了mysql拓展的配置也没问题,phpinfo中就是没有mysql拓展
centos7.5下添加gd库然后mysql拓展库没了mysql拓展的配置也没问题,phpinfo中就是没有mysql拓展
2022-07-22 09:05:00 【enoshxu】
centos7.5下添加gd库然后mysql拓展库没了,mysql拓展的配置也没问题,phpinfo中就是没有mysql拓展。
php -v 报错如下:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so'
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so'
[[email protected]_0_14_centos modules]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.16 (cli) (built: Nov 1 2019 16:04:20)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
如果msyqli.so 的配置都没问题的情况,试下卸载mysqli.so拓展, 如:yum remove php-mysqli ;然后再重新装php-mysqli ,
yum install -y php-mysqli
重启php-fpm:
systemctl restart php-fpm
重启nginx服务器:
systemctl restart nginx
php -v查看有没有报错
以上都是在centos7.5下的命令行操作的,其他系统类似。
再通过phpinfo.php 查看有没有mysql拓展,有则问题解决。
好像是系统本身的bug。
边栏推荐
- 力扣解法汇总1200-最小绝对差
- 数据湖(十八):Flink与Iceberg整合SQL API操作
- Node generates and verifies tokens (typescript syntax)
- 枚举对象中属性
- ecshop配置微信支付,微信开发者工具微信支付时弹窗提示“未绑定网页开发者”问题
- 力扣解法汇总1260-二维网格迁移
- Thread learning notes
- 【How To 系列】好友裂变平台搭建
- Distsql deep parsing: creating a dynamic distributed database
- It took two hours to find the bug about scrollto scrolling the distance from offsettop to the top
猜你喜欢
真的有必要定义VO,BO,PO,DO,DTO吗?
"Review of software engineering in Wuhan University of technology" Chapter 5 | software architecture
Laravel 解决【1045】Access denied for user ‘homestead‘@‘localhost‘ (usin g password: YES)
Date对象简介
C语言中continue的理解(fishing_1)
creating vlan over openstack (by quqi99)
sql注入
Dr. water
"Review of software engineering in Wuhan University of technology" Chapter 6 | coding specification
ip,子网掩码,网关,IPS与IDS
随机推荐
Codeforces Round #805 (Div. 3)(8/8)
Dr. water
堡垒机,DMZ区
力扣解法汇总513-找树左下角的值
Fabric. JS centered element
ES6 assignment deconstruction
力扣解法汇总535-TinyURL 的加密与解密
Distsql deep parsing: creating a dynamic distributed database
力扣解法汇总735-行星碰撞
Summary of front-line Internet P7 interview questions - Supplementary
数组的简介
Codeforces Round #799 (Div. 4)(8/8)
Js高级-对象的理解
MySQL优化之强制索引的使用
web新手区
真的有必要定义VO,BO,PO,DO,DTO吗?
2021-10-18 burn bare board program with EOP
抖音巨量引擎1 创建广告计划
线程学习笔记
call()和apply()