phpispconfig

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


PHP 7.0 installed with mysql extension, loaded in both fpm and cli. But this shows while installing 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]

Solution

  • Stable version on website doesn't work for php 7.0. So here's the fix:

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

    As ccKep mentioned it's fixed in https://git.ispconfig.org/ispconfig/ispconfig3/commit/f1926a01df8871cdacb29c97ffbfd7ff18d1610a