Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Saturday, June 15, 2013

Wordpress hacks...

1- If below wordpress error in module installation
"
Unpacking the package…
Abort class-pclzip.php : Missing zlib extensions
"
just list the compiled modules with php with "php -m"
or
check with wordpress function which require zlib moulde "var_dump(function_exists("gzopen"));"

whether current php supports zlib or not.if not than recompile it with --with-zlib option.Second
should return true if zlib is one of the compiled module.

Below is one sample to manually configure and install php.

./configure --prefix=/soft_install/php5 --with-apxs2=/soft_install/apache2/bin/apxs --with-mysql
--enable-fastcgi --enable-fpm --with-zlib --with-bz2 --with-xml --with-zlib --enable-mbregex
--with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre-regex

make & make install