I have downloaded zip extension for PHP 7.3 on CentOS by typing the following command
yum install php73-php-pecl-zip
and added extension=zip.so
to php.ini file, also restarted httpd service.
Still cannot see zip extension in phpinfo()
and in my code I still get Class 'ZipArchive' not found in...
error.
What should I do?
2
Answers
I ran following command to find out where the package installed
as a result of that I could see the directory where the so file installed.
I copied zip.so to default extension directory
And finally restarted httpd server.
Thanks to @Anders who gave me that idea
No.
If you use base package (php-*) you need php-pecl-zip.
php73-php-pecl-zip is a SCL package designed for parallel installation.
See the repository FAQ
For a proper configuration, and to avoid such issues, follow the Wizard instructions.