Install probs of an older version ...

Install probs of an older version ...

by Heinz Felfe -
Number of replies: 1

Hi there,

because of an update process of an older Moodle 3.0 site, I have to

install also Moodle 3.1.1.7.


However, an installation of a plain Moodle 3.1.1.7 (downloaded from moodle.org)

fails on my server (Debian 9.8 , MariaDB



the first error message is on the web interface during the install process saying:


"Your database has tables using Antelope as the file format. Full UTF-8 support in MySQL and MariaDB requires the Barracuda file format. Please convert the tables to the Barracuda file format. See the documentation Administration via command line for details of a tool for converting InnoDB tables to Barracuda."


So I tried to convert the tables the prescribed way with "admin/cli/check_database_schema.php" getting

the next error-msg (on the shell)


#/var/www/html/moodle3117# php admin/cli/check_database_schema.php

!!! <p>Error: database driver problem detected</p>

<p>The site administrator should verify server configuration</p><p>PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.</p> !!!

#/var/www/html/moodle3117# 


So my guess that mysql extension for php is missing on the shell



in the following mysqlnd and mysqli are missing


#/var/www/html/moodle3117# php -m

[PHP Modules]

calendar

Core

ctype

date

ereg

exif

fileinfo

filter

ftp

gettext

hash

iconv

json

libxml

mhash

openssl

pcntl

pcre

PDO

Phar

posix

readline

Reflection

session

shmop

sockets

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

Zend OPcache

zlib


[Zend Modules]

Zend OPcache


#/var/www/html/moodle3117# 




can you tell how to get moodle installed here ? 

How to enable mysqli / mysqlnd ?  php7.0-mysql is installed , it includes  php-mysqli


I also tried to use mariadb - driver in the config.php.  same result !



Thanks for help and hints!


Best,

Heinz

Average of ratings: -
In reply to Heinz Felfe

Re: Install probs of an older version ...

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It depends on your operating system and how PHP was installed on it in the first place. For common scenarios (e.g. Ubuntu and CentOS), the CLI extensions and the web extensions are installed at the same time so it's rarely an issue.