Tuesday, February 23, 2021

Install PHP zip Extension on Ubuntu 20.04

 Mehtod 1:

sudo apt-get install php7.4-zip
sudo /etc/init.d/apache2 restart or sudo service nginx restart


 Mehtod 2:

sudo apt-get update
sudo apt-get install libz-dev -y
pecl install zlib zip
sudo /etc/init.d/apache2 restart

No comments:

Post a Comment

SQL to delete all WooCommerce products except those with "draft" status

 -- Disable foreign key checks (important for InnoDB) SET     FOREIGN_KEY_CHECKS = 0;     -- Delete product meta DELETE     pm FROM     wp_p...