I’m a moodle user and recently found out that everytime i try to download a ODS file (exporting grades) it says Exception - Class “ZipArchive” not found"
it turns out that my php (version 8.0) doesn’t have the zip extension installed
i tried installing the zip extension on cyberpanel(my moodle is hosted on cyberpanel CentOS 7) but i don’t seems to install, when i click to install i receive this message:
Loaded plugins: copr, fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: atl.mirrors.clouvider.net
* epel: mirrors.coreix.net
* extras: mirror.dal.nexril.net
* updates: atl.mirrors.clouvider.net
10 packages excluded due to repository priority protections
Package lsphp80-common-8.0.15-1.el7.x86_64 already installed and latest version
Nothing to do
PHP Extension Installed.
but then when i return to the extension page it says that the extension is not installed, and i still can’t generate ODS files, i tried searching in about it and people said that i need to do it on terminal, i tried using cyberpanel terminal as root user with those commands:
yum install php-pear
yum install php-devel
pecl install zip
then i gone to the php.ini ( i tried open it on either cyberpanel interface and on terminal) and insert the code:
extension=zip.so;
before the “module settings” section on the file, and it still doesn’t work(it sems that i have multiple versions of php installed on my cyberpanel, i tried editing php.ini on my php 8.0 directory and other versions avaliable)
its weird because on version 7.3 of php it install and work normally(it even install on the interface) and when i change the php version on my moodle to 7.3(i don’t wanna use this version) it the error completely disappears, how can i solve it?