Moodle stops on install with white screen

Moodle stops on install with white screen

Max Zöller -
回帖数:9

I tried installing Moodle 4.1 stable but install stops with a white screen.
The problem is already described here:
https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=0CAQQw7AJahcKEwiQiczE6IH8AhUAAAAAHQAAAAAQAw&url=https%3A%2F%2Fmoodle.org%2Fmod%2Fforum%2Fdiscuss.php%3Fd%3D329737&psig=AOvVaw0u1pWmtBwEAWzbQMQ8c0QU&ust=1671406494987578

Instead of him I am using Apache,PHP,MariaDB. Server checks said all good. Then freezing white screen with two words "Install" and "System".

Help appreciated!

回复Max Zöller

Re: Moodle stops on install with white screen

Ken Task -
Particularly helpful Moodlers的头像

From what you've described, It stops at the point of upgrading the tables in the DB.   Checks of system only determine if versions are ok and if all required PHP extensions are installed, but not config's of things like MariaDB.

So check your web servers error logs looking for anything related to DB ... like 'server has gone away'.   That's a config tweak for MySQL or MariaDB.

Got command line access to your server?

If so, suggest installing MySQL Tuner (works with MariaDB) and run it with superuser credentials for the DB server.

https://github.com/major/MySQLTuner-perl

When run, it will show recommendations at the very end.

Would also help to know about hosting situation ... shared hosting or VPS, memory, etc.

'SoS', Ken


回复Ken Task

Re: Moodle stops on install with white screen

Max Zöller -
Thanks for your answer. Apache error logs has no entries.

I am unable to use MYSQL Turner because I am using shared hosting.
回复Max Zöller

Re: Moodle stops on install with white screen

Ken Task -
Particularly helpful Moodlers的头像

Shared hosting (sh) is usually not a good environment for a moodle ... especially if the sh is the cheapest plan ... possibly: restrictions to memory (on installs think moodle tries to grab 128M more), inode limits, etc.  Things not shared by hosting provider ... not important for say a WordPress ... but critical for a Moodle.

So, what does your sh plan get you?  Memory/space, etc.  More info please!

Moodle is one of those apps where having additional tools that normally do not come with any plans a big plus!  And if you have no way of installing them you are at a disadvantage.   Might run across issues that can't be solved.   As the saying goes ... 'can't get blood out of a turnip!'.

'SoS', Ken


回复Max Zöller

Re: Moodle stops on install with white screen

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi

What is that link, which is supposed to describe the problem? A click-bait?

Seeing google.com I expected a Google Sheet PDF. Then got stymied over what I saw:

Which is just a link back to moodle.org, https://moodle.org/mod/forum/discuss.php?d=329737 to be specific. Why take the visitor a full tour for that?

Assuming that this is not a mistake, what you are saying is that, the OP in the year 2016 had exactly the same problem you are having. How do you know? The OP has never solved the problem, or at least not posted one. I think, unless you want to solve _his_ problem, you better concentrate on _your_ problem. May be Before you post... read this... https://moodle.org/mod/forum/discuss.php?d=356184#p1436759 is a good place to start.

回复Visvanath Ratnaweera

Re: Moodle stops on install with white screen

Max Zöller -
Meanwhile I completed the form with the unix socket entry which I left blank before. Then I get this error when clicking on "next". Before, without this entry db connection was possible.
Hosting support unable to help. Says he made it work with the same data.


回复Max Zöller

Re: Moodle stops on install with white screen

Ken Task -
Particularly helpful Moodlers的头像

'completed the form' ... not sure what you mean by that.   Sockets ... and didn't fill out before ... does that mean you used 'localhost' for the DB server?

"Hosting support unable to help. Says he made it work with the same data."

Am not surprised as hosting providers usually do not go into the application level of customers.   Well, if "he" said 'made it work' ... might ask him to clarify what he did to make it work?   Come back here and share what was said!

At some point, a failed install means starting over again.

So mind disclosing how you are attempting to install and what, if any, doc you are following (IF url, URL please).

'SoS', Ken



回复Ken Task

Re: Moodle stops on install with white screen

Max Zöller -
Shared Hosting Support says after several tries it might be a problem with not enough rights cause he can make it run but cannot grant me superuser rights.
回复Max Zöller

Re: Moodle stops on install with white screen

Ken Task -
Particularly helpful Moodlers的头像

Mind disclosing with whom you host?   and the package level you leased with that provider's offerings of 'Shared Hosting'?   You'd be doing others a favor should they happen to be in a similar situation - same provider - same level of shared hosting.

It's true of all 'Shared Hosting' that users will not be granted superuser access to the shared DB server being used but users should be granted sufficient privileges (rights) to their own databases.

In order to upgrade, you might have to request of provider your account be moved from current 'shared hosting' package to the highest 'shared package' they offer ... depending on what one gets with the highest.

'SoS', Ken


回复Max Zöller

Re: Moodle stops on install with white screen

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
It didn't help that you obscured the file path... however...

That error means that PHP is attempting to open the database connection socket but it's not there (or you don't have the rights). This is definitely one for your host to sort as it should work.

However, the simple solution may be to change $CFG->dbhost in your config.php from 'localhost' (assuming that it is) to '127.0.0.1'.

That forces it to use tcp/ip instead of sockets.