After update Ubuntu from 22.04 to 24.04, I get this error in the table for Boost Union plugin update. On Mdl 4.5.
"Exception - Class "ZipArchive" not found" |
Any help or pointer welcome.
TIA, Greg
sudo apt install php-zip
Similar to the way that you are also missing the GD extension (https://moodle.org/mod/forum/discuss.php?d=467588) Can I suggest that you are probably posting multiple threads about what will turn out to be the same problem.... you've upgraded PHP and failed to add in the required extensions.
@Howard ... guess I'll defer to you when it comes to installing PHP on Ubuntu ... package manager on Rocky 9 (dnf) doesn't behave like apt-get.
But am in 100% agreement with:
"I'm not a fan of upgrading Ubuntu server. I always recommend creating a new instance from scratch and reloading your site from a backup. It's usually quicker and more reliable in the end. As you might be finding out."
I had that very un-pleasant experience a couple of years ago with an older version of Ubuntu - server drop shipped to me for the purpose of extracting just the course backups from the site. The in place upgrade whacked networking - spent about 3 weeks completing what normally takes minutes.
I was thinking about suggesting to the OP .... 'start over' and 'start new server build'! But, as is the case like this, many times there are no backups ... site backups or course backups. :|
'SoS', Ken
Thanks, Howard. Yes, I'm considering starting from scratch, and agree upgrades can be painful.
However, the server not only hosts a Mdl site, but also, Apache, Ngnix, Magento, iRedMail, Postfix etc, Fail2Ban, ClamAv, Amavis, and all the others bits and pieces, Roundcube, and a couple of other HTML websites. None of the apps are busy, so it's manageable. To restore all that from scratch is a big task...
For now, I'm going to persevere with resolving the php issues, due to above.
I have made some progress, on the other post I put up, that you commented on. It appears the PPA from AndreJ was the issue with libgd3 being held back and causing conflicts. I'm now past that and trying to resolve the PHP issues with the version 8.4 coming with the Ubuntu 24.04 and the 8.2 that Moodle wants.
Mind you, I went down this path because I found it too difficult to upgrade MariaDB on Ubuntu 22.04 from 10.4 to 10.11 that Mdl needs. If that wasnt the case, I'd not have gone with the OS upgrade.
Pleasingly now I can put this and receive a positive return with regard to libgd3.
--------
# sudo apt policy libgd3
libgd3:
Installed: 2.3.3-9+ubuntu20.04.1+deb.sury.org+1
Candidate: 2.3.3-9+ubuntu20.04.1+deb.sury.org+1
Version table:
*** 2.3.3-9+ubuntu20.04.1+deb.sury.org+1 100
100 /var/lib/dpkg/status
----------
Now I've got MariaDB upgraded, I need to figure out how to force Mdl to use php8.2, and I believe my problem will be solved. I don't need php8.4 at all, but it's part of the OS, so I probably need to leave it. Magento happily runs on php7.4, so there must be a way.
Thanks for your input, much appreciated.
Ok, thanks. I'm not familiar with Docker or how it works. I'll have a look around. See if there's some YouTube on it, to get an overview.
Cheers.