tolochik
tolochik
Hello, have you modified the php configuration file? php has installed and loaded zip.so by default
You can also try to install it manually once
Replace 74 with your version without the .dot in the middle
php_version=74
echo /www/server/php/${php_version}/src/ext/zip
cd /www/server/php/${php_version}/src/ext/zip
/www/server/php/${php_version}/bin/phpize
./configure --with-php-config=/www/server/php/${php_version}/bin/php-config
make && make install
if [ "${php_version}" == "73" ];then
extFile="/www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731/zip.so"
elif [ "${php_version}" == "74" ]; then
extFile="/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/zip.so"
elif [ "${php_version}" == "80" ]; then
extFile="/www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/zip.so"
elif [ "${php_version}" == "81" ]; then
extFile="/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/zip.so"
fi
if [ -f "${extFile}" ];then
echo "extension = zip.so" >> ${php_setup_path}/etc/php.ini
fi
echo -e "extension = " ${extFile} >> /www/server/php/${php_version}/etc/php.ini
echo -e "extension = " ${extFile} >> /www/server/php/${php_version}/etc/php-cli.ini
/etc/init.d/php-fpm-${php_version} reload