• Support
  • ext-zip is missing from your system. Install or enable PHP's zip extension.

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.

      aaPanel_Kern

      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

        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

          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.

            a year later

            do you have any estimated date to fix this issues still now this bug is not fixed

            Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com