• Support
  • PHP 7.4.7 missing ZIP extension

ezbotchat
you can install php-zip use this command
centos
yum install lsphp74-zip && /usr/local/lsws/bin/lswsctrl reload
ubuntu
apt install lsphp74-zip && /usr/local/lsws/bin/lswsctrl reload
on OLS web server

@jcasilva
We have not tested the redhat server.

@idflorin
in my aws test server zip was install by default.

If you can provide the panel and ssh login information, I will be happy to check it for you

2 months later

I had the same issue, installed zip extension manually and added

extension = /www/server/php/74/src/ext/zip/modules/zip.so

to php configuration file solved this issue for me.

I wish Aapanel supplied the zip extension.

Thanks.

7 months later

please add zip extension to the list in aapanel is required for Mautic software email marketing. and a lot scripts.

21 days later

can someone help me with this? 🙁 , i try to install manually but dosent work

done, i install this by : yum install lsphp74-zip && /usr/local/lsws/bin/lswsctrl reload

and later add this to config in php configuration file

extension = /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/zip.so

maybe the rute change in php versions idk , centos 7

19 days later

Today i upgraded to the new version of PHP and it stop working work for me, so I reinstalled it from scratch and did it again, the path remains the same (now it comes installed by default)

extension = /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/zip.so

thanks to the developers for this great panel 😁

    a month later

    Good morning, do you know how I can put the php-smbclient extension?
    I've been trying it in different ways since yesterday and it doesn't work.

    a year later

    error105
    Hello, try installing manually.

    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
    4 months later

    shajal

    version=81
    cd /www/server/php/$version/src/ext/zip
    /usr/local/lsws/lsphp$version/bin/phpize
    ./configure --with-php-config=/usr/local/lsws/lsphp$version/bin/php-config
    make && make install
    echo "extension=zip.so" >> /usr/local/lsws/lsphp$version/etc/php.d/zip.ini
    ls /usr/local/lsws/lsphp$version/lib64/php/modules/zip.so
    /usr/local/lsws/bin/lswsctrl reload

    shajal
    Hello, the php used by nginx/apache is under /www/server/php/
    openlitespeed uses the lsphp directory under /usr/local/lsws/. Is it recommended to check that the executed directory is correct?
    Try to manually install lsphp81-devel and then manually install the zip extension
    centos:
    yum install lsphp81-devdel

    ubuntu/debian:
    apt install lsphp81-dev

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