Hi, I'm getting this error several times. Is there any permanent fix?
I'm using PHP 8.1
https://prnt.sc/Jsb56RK2FFz5
ext-zip is missing from your system. Install or enable PHP's zip extension.
buzz4rd
Hi, are you using nginx or openlitespeed?
aaPanel_Kern nginx
buzz4rd
Install manually using the command
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
aaPanel_Kern Thanks for your quick reply. Could you please tell me where to run this command? I already did this in the terminal but facing the same issue.
buzz4rd
It is recommended to check the installation process for errors.
- Edited
aaPanel_Kern
I'm getting this.
aaPanel version : 6.8.27
My PHP version is 8.1. So I also tried this https://www.aapanel.com/forum/d/1698-php-747-missing-zip-extension/16
But facing the same error.
buzz4rd
php_version=74
To change to your php version
- Edited
This is the updated command
php_version=81
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
But I have a directory like /www/server/php/81/
buzz4rd
You need to manually execute the command line by line
aaPanel_Kern I'm reinstalling PHP 8.1
But I got this error every time
Is it normal?
el=$(cat /etc/redhat-release|grep -iE 'CentOS|Red Hat'|grep -Eo '([0-9]+\.)+[0-9]+'|grep -Eo '^[0-9]')
download_Url="http://node.aapanel.com"
mkdir /tmp/libzip
cd /tmp/libzip
wget -O libzip5-1.5.2.rpm ${download_Url}/rpm/remi/${el}/libzip5-1.5.2.rpm
wget -O libzip5-devel-1.5.2.rpm ${download_Url}/rpm/remi/${el}/libzip5-devel-1.5.2.rpm
wget -O libzip5-tools-1.5.2.rpm ${download_Url}/rpm/remi/${el}/libzip5-tools-1.5.2.rpm
yum install * -y
cd ..
rm -rf libzip
- Edited
aaPanel_Kern
Getting this
buzz4rd
Hi, can you give us your aapanel information? The server makes a snapshot backup first, if possible, please send it to kern@aapanel.com.
It is recommended to fill in the following
Post link:
SSH IP address, account password and port:
aapanel login link address and account password:
No post link will not be able to know which user's information is
aaPanel_Kern Thanks for your support. Unfortunately, it does not have snapshot backup. I have to take backup manually. So, I will share the info after taking backups.
do you have any estimated date to fix this issues still now this bug is not fixed