It seems Apache isn't loading the PHP extension correctly. First, make sure Apache is using the correct php.ini by checking phpinfo()
in the browser. In your php.ini
, try using extension=zip.so
instead of the full path. After making changes, restart Apache with sudo apachectl restart
. If it still doesn’t work, check Apache’s error logs (/var/log/apache2/error_log
) for more details. This should make ZipArchive available in both the command line and the browser.