Since PHP 7.3.8 the ZIP module is not prebuilt inside the PHP anymore.
However, AAPanel for Ubuntu (LTS 20.04) at this moment failed to follow-up this change.
Solution for PHP 7.3:
cd /www/server/php/73/src/ext/zip/
/www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
echo "extension = zip.so" >> /www/server/php/73/etc/php.ini
service php-fpm-73 reload
Similarly, solution for PHP 8.0:
cd /www/server/php/80/src/ext/zip/
/www/server/php/80/bin/phpize
./configure --with-php-config=/www/server/php/80/bin/php-config
make && make install
echo "extension = zip.so" >> /www/server/php/80/etc/php.ini
service php-fpm-80 reload
Reference (Chinese AAPanel official community):
https://www.bt.cn/bbs/thread-36416-1-1.html
UPDATE: If you see this, please remove or comment out the line extension = zip.so
from /www/server/php/73/etc/php.ini
(Actual directory depends on your PHP version.)
