Fatal error: Class ‘ZipArchive’ not found in /about.php on line 3
Fatal error: Class ‘ZipArchive’ not found in /about.php on line 3
I got the PHP error ‘Fatal error: Class ‘ZipArchive’ not found in /about.php on line 3′ in my website and in the server error log file. The error can be fixed by installing php-zip extension on your linux server. Do the below steps to install php zip extension on your server.
1. Log into your Centos / Redhat server as ‘root’ user
2. The command ‘php -m | grep zip’ will check whether php-zip extension is enabled or not.
3. Run the command ‘yum provides php-zip’ to find the package that provides this extension
# yum provides php-zip
3. zip extension is provided by php-common package, check whether this package is installed on your server.
# rpm -qa | grep php-common
4. Run the command ‘yum install php-common’ to install PHP zip extension.
command : yum install php-common