没有 PHP MySQL 函数可用。无法识别 MySQL 模块已安装

No PHP MySQL functions available. Not recognizing that MySQL module is installed

PHP 7.0 安装了 mysql 扩展,在 fpm 和 cli 中加载。但这在安装 ISPConfig 3 时显示:

# php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
json
libxml
mbstring
mongodb
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

/tmp/ispconfig3_install/install > root@vm18722 [php:7.0.5-system]
# php -q install.php


--------------------------------------------------------------------------------
 _____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------


>> Initial configuration

Operating System: 14.04.4 LTS (Trusty Tahr)

    Following will be a few questions for primary configuration so be careful.
    Default values are in [brackets] and can be accepted with <ENTER>.
    Tap in "quit" (without the quotes) to stop the installer.


Select language (en,de) [en]:

Installation mode (standard,expert) [standard]:

Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [vm18722]:

No PHP MySQL functions available. Please ensure that the PHP MySQL module is loaded.

/tmp/ispconfig3_install/install > root@vm18722 [php:7.0.5-system]

网站上的稳定版不适用于 php 7.0。 所以这里是修复:

git clone https://git.ispconfig.org/ispconfig/ispconfig3.git
cd ispconfig3/install
php -q install.php

正如 ccKep 提到的,它已在 https://git.ispconfig.org/ispconfig/ispconfig3/commit/f1926a01df8871cdacb29c97ffbfd7ff18d1610a

中修复