Since I recovered from some mess that I was having after upgrading my Ubuntu server to 14.04, the two WordPress websites that I have hosted on the server have been randomly displaying the following error message upon opening:
Abort class-pclzip.php : Missing zlib extensions
The strange thing is that a refresh gets rid of the message. While this works for me, it’s not a good idea to rely on guest visitor’s quick-wittedness.
So, could you help me figure out what’s missing and how to add it?
Actually, I changed
to solve the issue.
Answered by Henry on November 21, 2021
To get around this issue, I had to recompile PHP from source code with support for zlib turned on. By default, PHP 5.5.x does not include zlib support.
After downloading source from the PHP site (from my home directory):
gunzip php-5.5.23.tar.gz tar xvf php-5.5.23.tar cd php-5.5.23 ./configure --with-mysql --with-mysqli --enable-zip --enable-mbstring --with-zlib make sudo make install
This installs PHP into /usr/local
You'll also need to update your Apache server to look for the php.ini file in /usr/local/lib if it is set to look elsewhere.
The underlying cause is a Wordpress plug-in that is checking for ZLIB support, and mistakenly thinks your PHP installation supports it. Similar to yourself, I would see this error message randomly.
Answered by KeithL on November 21, 2021
0 Asked on February 26, 2021 by larry-golade
1 Asked on February 26, 2021 by salil-naik
4 Asked on February 25, 2021 by dsstorm
0 Asked on February 24, 2021 by pierre-nicolas-suau
0 Asked on February 22, 2021 by vajad57
0 Asked on February 22, 2021 by thebunnyman
4 Asked on February 22, 2021 by s-ouchene
4 Asked on February 22, 2021 by in2deep
4 Asked on February 22, 2021 by avi-mehenwal
2 Asked on February 21, 2021 by pranav-sharma
1 Asked on February 21, 2021 by coolguy3289
1 Asked on February 21, 2021 by shivank-anchal
3 Asked on February 20, 2021 by obelix
Get help from others!