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 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败