(I wanted to use Images to help visualizing but the Forum didn’t let me do it because I am a new User. So I am trying it without images…)
Hi,
I did a fresh install on my Windows Machine for a Getting Started and see what can be done.
I got greeted with a Start-Up Page which shows one missing Module:
PHP Zip extension is required but not installed
But PHP (Version 8.4.2 / php.exe -ini) itself shows this:
zip
Zip => enabled
Zip version => 1.22.4
Libzip version => 1.11.2
BZIP2 compression => Yes
XZ compression => Yes
ZSTD compression => No
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes
The Grav Code for this looks like this:
// Check for PHP Zip library
$msg = ‘PHP Zip extension is %s installed’;
if (extension_loaded(‘zip’)) {
$modules_success[‘zip’] = sprintf($msg, ‘successfully’);
} else {
$modules_errors[‘zip’] = sprintf($msg, ‘required but not’);
}
But when I call this function in CLI then I get this:
C:\Users\User>php -r “print extension_loaded(‘zip’);”
1
And this is the only PHP Version installed on my Machine.
What could be the Issue with this?