I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

by Doulos Xavier -
Number of replies: 4

I have the exact same Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine. The cPanel installed Moodle using Softaculous does not show any error for the course reused from Moodle 4.1 

Here is the screen that I see on the one VMWare Virtual Machine which is running on  Ubuntu 24.04.1 LTS, the one cPanel is running on AlmaLinux 8 cPanel (64-bit). We are planning to migrate the courses from 4.1 to 4.5.3 to server with no cPanel or Softaculous, any pointers appreciated. 

image.png

Average of ratings: -
In reply to Doulos Xavier

Re: I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

by Ken Task -
Picture of Particularly helpful Moodlers

In the 4.5, Site Admin menu, H5P, Manage H5P content types.

Set path to php-cli in paths then go to:

Scheduled Task.
Download available H5P content types from h5p.org \core\task\h5p_get_content_types_task
Click the 'run now' link in that row.

'SoS', Ken

In reply to Ken Task

Re: I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

by Doulos Xavier -
Thanks Ken.

In the 'Manage H5P content types' I don't see 'Set path to php-cli' could you help me understand? 
 
image.png 

In reply to Doulos Xavier

Re: I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

by Ken Task -
Picture of Particularly helpful Moodlers

Site Admin menu search box.  Use 'path' as search parameter.   In resulting page, find the Paths, click it, then set the path to php-cli.

Next question you might have, how do I know the path ... Answer:

From Terminal/shell and in moodle code directory, type:

which php [ENTER]

That will show a path.   Something like /usr/bin/php

Then use that path with the following command:

/usr/bin/php -v

What is returned should show php-cli ... and version number.  If that version number is same as what you see in Environment check of moodle, then that's the path you enter into paths for php-cli.

Now go to Scheduled task ... find the row for H5P and use the 'Run Now' link.

Comment: as you make progress in this effort and get things to work, advise stopping from time to time and making a full site backup.   Why?   You don't want to loose ground gained should your next attempt to fix/configure fail.

Also a word of caution: Softaculous .. is a proprietary tool for installing and updating/upgrading moodle.   It is not anything official from Moodle HQ.   If you have issues with updating or upgrading, you * MUST * use the Softaculous support link in the upper right hand corner of the Softac screen to report the issue and get assistance.

Why?  Softac is commercial ... no one in these forums works for Softac and should not be expected to support it for free!

Am not saying don't use it ... you have ... and probably a good idea considering your understanding of how to admin a server.   Just a forewarning.

The other ... and this you will eventually have to take up with your hosting provider ... Alma Linux 8 - end of life - 

AlmaLinux OS 8 will have active support until May 1, 2024, and security support until May 1, 2029

Granted, 2029 seems a long way off but out of sight out of mind.

These days, it is a constant that blackhats will attempt many things on servers such as yours.   Keep your OS updated!  PERIOD!

'SoS', Ken

In reply to Ken Task

Solved-Re: I have Moodle 4.5.3 (Build: 20250317) one on cPanel and other on a Virtual Machine

by Doulos Xavier -