dqssst0144 2019-07-27 00:07
浏览 93

一个脚本上的“MySQL PHP扩展不可用”错误,而其他一切工作正常

On Ubuntu 16.04 AWS instance, a WordPress website is working just fine. When I tried to install another IMS (institute management system), it failed to install and the self-installer showed the following error:

Required - MySQL PHP extension available (Not Available)

My php version: 7.0.33-0ubuntu0.16.04.5

My MySQL version: 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper

I have tried changing the php.ini file. Uncommented the line

extension=mysql.so

Although when I went to the location, i.e, /usr/lib/php/20151012, there was no file named mysql.so.

There was a file named mysqli.so, so I then changed the line to

extension=mysqli.so

and then restarted the apache2 service but to no avail. There is still the same error:

Required - MySQL PHP extension available (Not Available)

  • 写回答

1条回答

  • duan4369 2019-07-27 00:18
    关注

    The MySQL extension is no longer available in PHP 7.0+. If you have older code, you'll need to update or upgrade.

    This is especially important for older WordPress installs that will be compromised by automatic attack tools if you're not vigilant about staying patched.

    评论

报告相同问题?

悬赏问题

  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch