给PHP安装sg11后重载不生效,重启报错提示缺少ixed.lin,PHP关闭后无法开启怎么解决?
报错内容
NOTICE:PHP mess age: PHP Warning: PHP Startup:Unable to load dynamic library'/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/ixed.lin'(tried:/www.server/php/72/lib/php/extensions/no-debug-non-zts-20170718/ixed.lin (/www./server/php/72/lib/php/extensions/no-debug-non-zts-20170718/ixed.lin: file too short),/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/7
2/lib/php/extensions/no-debug-non-zts-
20170718/ixed.lin.so(/www./server/php/7
2/lib/php/extensions/no-debug-non-zts-
20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/ixed.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
NOTICE:PHP mess age: PHP Warning:PHP Startup:Unable to load dynamic library'/www/server/php/71/lib/php/extensions/no-debug-non-zts-20160303/ixed.lin'- /www/server/php/71/lib/php/extensions/no-debug-non-zts-20160303/ixed.lin: file too short in Unknown on line 0
解决方案
分析报错后,发现缺少组件ixed.lin,那我们手动下载一下即可,下面我们以PHP7.1为例
以下内容,基于Centos7.6(64位)宝塔7.7
执行命令方式
依次执行下方4条命令
rm -rf /www/server/php/71(PHP版本号)/lib/php/extensions/no-debug-non-zts(开头的文件)/ixed.lin
cd //www/server/php/71(PHP版本号)/lib/php/extensions/no-debug-non-zts(开头的文件)/
wget -P / http://download.bt.cn/src/sg11/64/x86_64/ixed.7.1(此处的7.1为PHP版本号).lin
mv ixed.7.1(此处的7.1为PHP版本号).lin ixed.lin
宝塔可视化方式
1.在文件依次打开/www/server/php/71(PHP版本号)/lib/php/extensions/no-debug-non-zts(开头的文件夹)/目录
2.删除ixed.lin文件
3.点击远程下载,填http://download.bt.cn/src/sg11/64/x86_64/ixed.7.1(此处的7.1为PHP版本号).lin并下载
4.重命名下载下来的ixed.7.1(此处的7.1为PHP版本号).lin为ixed.lin
温馨提示:
本文最后更新于
登录后可快速点此处反馈,点击登录
2021-12-19 14:12:15,某些文章具有时效性,若有错误或已失效,请在下方留言或加入QQ群:
399019539 联系群主反馈。注意一些链接无法访问可能是你网络的原因,如Github,并非资源地址失效。
登录后可快速点此处反馈,点击登录
© 版权声明
THE END













请登录后查看评论内容