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?
I copied zip.so to default extension directory
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.