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