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

Detailed description of shallow copy and deep copy in js

Table of contents 1. js memory 2. Assignment 3. S...

Detailed installation tutorial of mysql 5.7.11 under Win7 system

Operating system: Win7 64-bit Ultimate Edition My...

PNG Alpha Transparency in IE6 (Complete Collection)

Many people say that IE6 does not support PNG tra...

A detailed account of the process of climbing a pit of Docker deployment service

First time writing. Allow me to introduce myself....

mysql subquery and join table details

Table of contents 1. What is a subquery? 2. Self-...

MySQL 8.0.20 installation and configuration tutorial under Win10

MySQL 8.0.20 installation and configuration super...

Solution to incomplete text display in el-tree

Table of contents Method 1: The simplest way to s...

A simple explanation of MySQL parallel replication

1. Background of Parallel Replication First of al...

HeidiSQL tool to export and import MySQL data

Sometimes, in order to facilitate the export and ...

Echarts legend component properties and source code

The legend component is a commonly used component...

A very detailed explanation of the Linux DHCP service

Table of contents 1. DHCP Service (Dynamic Host C...

Basic usage of custom directives in Vue

Table of contents Preface text 1. Global Registra...

Detailed explanation of Mysql transaction isolation level read commit

View MySQL transaction isolation level mysql> ...