Installation Failure on Debian 10 (4.0.4+)

Installation Failure on Debian 10 (4.0.4+)

by Jasper Brown -
Number of replies: 4
Hello everyone, I'm having some problems installing moodle, after I finished all the steps of configuration, the page got stuck here.

The environment is Debian 10, with LAMP(with PHP 7.3), I followed the tutorials on this website.

Previously I have tried on Debian 10, ubuntu 22.04 with LNMP, but both have the same problem. 

I've searched the internet but got no valuable help, so I've come to you all for help.


Average of ratings: -
In reply to Jasper Brown

Re: Installation Failure on Debian 10 (4.0.4+)

by Ken Task -
Picture of Particularly helpful Moodlers
Qualifcations for this response ... don't use Debian, but have installed Moodle on other Linux systems (including Ubuntu).

Is there a config.php flie in code root of your site?

For version 4 of Moodle, DB server versions 5.7/8.0 for MySQL, and for MariaDB 10.2.29 to 10.5.   Logged on via ssh what does mysql -V show?

Failed installs, if database for moodle has been touched,  might require dropping the database and re-creating again.   IF you have a config.php file at code root, to begin again you might need to erase that file.

As superuser of DB server, from the mysql prompt:
show databases;
Does that show a moodle DB?
and check to see if any tables have been created:
use moodle;
show tables;
\q to quite the mysql client.

In moodlecode/admin/cli/, there are scripts that will install via command line.  You will be prompted for the same information as the web based install ... that takes your web server out of the loop for installation.

'SoS', Ken

In reply to Jasper Brown

Re: Installation Failure on Debian 10 (4.0.4+)

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

I had this happen recently due to a timeout between Apache and PHP-FPM. I had to add TimeOut 300 to the Apache .conf file for the site to resolve this.

Alternatively try installing using the command line as other have suggested. This removes any issue with the web server timing out from the installation process.

Average of ratings:Useful (1)