[LINUX] ZipArchive couldn't be used with the Laravel image launched by ConoHa.

Status

I was able to use it normally on my Homestead, so I was developing it without worrying about it, but when I deployed it, I got an error, so I was in trouble. Check the extension for the time being.

$ php --ri zip
Extension 'zip' not present.

There isn't.

environment

Installation

$ sudo yum install --enablerepo=remi,remi-php72 php-pecl-zip

apache restart

$ sudo systemctl restart httpd.service

Verification

$ php --ri zip

zip

Zip => enabled
Zip version => 1.19.0
Libzip headers version => 1.7.0
Libzip library version => 1.7.3
BZIP2 compression => Yes
XZ compression => Yes
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes

Recommended Posts

ZipArchive couldn't be used with the Laravel image launched by ConoHa.
Solution when the image cannot be displayed with tkinter [python]
Try blurring the image with opencv2
Hide the warning that zsh can be used by default on Mac
The --security option cannot be used with the dnf command on CentOS Linux
The story of using mysqlclient because PyMySQL cannot be used with Django 2.2
Be careful of the type when making an image mask with Numpy