Solution to BT Baota Panel php7.3 and php7.4 not supporting ZipArchive

Solution to BT Baota Panel php7.3 and php7.4 not supporting ZipArchive

The solution to the problem that the PHP7.3 version of Baota Panel does not support ZipArchive, which causes the program to be unable to be directly updated in the background

Execute the following statement in the SSH command line interface:

cd /www/server/php/73/src/ext/zip/
/www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
echo "extension = zip.so" >> /www/server/php/73/etc/php.ini

Finally, restart the PHP service in the software store.

The solution to the problem that the PHP7.4 version of Baota Panel does not support ZipArchive, which causes the program to be unable to be updated directly in the background

Execute the following statement in the SSH command line interface:

cd /www/server/php/74/src/ext/zip/
/www/server/php/74/bin/phpize
./configure --with-php-config=/www/server/php/74/bin/php-config
make && make install
echo "extension = zip.so" >> /www/server/php/74/etc/php.ini

Finally, restart the PHP service in the software store.

The explanation on this issue on the pagoda

Because the earlier installed Php7.3 is a separate compilation of the zip extension, the subsequent installation and upgrade are integrated compilation, resulting in repeated loading of the zip module after the upgrade

Therefore, subsequent PHP will no longer compile the ZIP extension separately. Now, more than half a year has passed, PHP has been updated to 7.3.8, and the ZIP module is no longer integrated (it is right not to integrate it, and keeping it compiled independently is the safest way), but the ZIP extension has not been compiled and installed separately.

Well, the solution is also very simple, the ZIP extension is already included in the software package, just add it back:

cd /www/server/php/73/src/ext/zip/
/www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install

Then, add back the line you deleted previously from your PHP configuration file:

echo "extension = zip.so" >> /www/server/php/73/etc/php.ini

Finally, reload the PHP service:

service php-fpm-73 reload

This is the end of this article about the solution to the problem that BT Baota Panel php7.3 and php7.4 do not support ZipArchive. For more related content about BT Baota php7.3 and php7.4 not supporting ZipArchive, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Analysis of PHP's method of obtaining real IP and IP simulation
  • PHP determines whether the IP address is within multiple IP segments
  • PHP sample code to count IP addresses and online users
  • Get the access user IP through PHP
  • PHP Pipeline middleware implementation example code
  • Example of native javascript ajax request and background PHP response operation
  • PHP uses the ZipArchive class to operate files
  • Examples of common methods for generating zip compression packages in PHP
  • How to decompress zip and rar compressed files in php
  • PHP implements IP conversion and shaping based on ip2long

<<:  MySQL slow query method and example

>>:  Dynamically edit data in Layui table row

Recommend

Steps to install cuda10.1 on Ubuntu 20.04 (graphic tutorial)

Pre-installation preparation The main purpose of ...

How to use Dockerfile to create a mirror of the Java runtime environment

The current environment is: Centos 7.5 docker-ce ...

Implementation of pushing Docker images to Docker Hub

After the image is built successfully, it can be ...

Do you know the weird things in Javascript?

Our veteran predecessors have written countless c...

Install Memcached and PHP Memcached extension under CentOS

Regarding the high-performance distributed memory...

How to make a centos base image

Preface Now the operating system used by my compa...

CSS screen size adaptive implementation example

To achieve CSS screen size adaptation, we must fi...

How to avoid data loop conflicts when MySQL is configured with dual masters

I wonder if you have ever thought about this ques...

Implementation of crawler Scrapy image created by dockerfile based on alpine

1. Download the alpine image [root@DockerBrian ~]...

A simple method to modify the size of Nginx uploaded files

Original link: https://vien.tech/article/138 Pref...

MySQL high availability solution MMM (MySQL multi-master replication manager)

1. Introduction to MMM: MMM stands for Multi-Mast...