Hi there,
I have Ubuntu 9.10 (not 64bit) running with a basic LAMP stack (configured per the "Setting up a LAMP Server on Ubuntu 9.10 (Karmic)" guide on the Linode library), and a site running WordPress. The auto-upgrading function of WP is having some trouble, claiming that the zlib extension is missing - but it's not, it's definitely present and enabled.
I had a look at the actual code which was causing the problem, and it's checking whether the gzopen() function exists. Sure enough, PHP is reporting that gzopen() doesn't exist or isn't defined. Very odd. gzopen64() however
does exist. This surprises me quite a bit, since plenty of PHP web apps use gzopen().
Does anyone have a suggestion as to how I can fix this? I've already tweaked the specific WordPress file (wp-admin/includes/class-pclzip.php) to use gzopen64() instead, and that allows the auto-upgrade functionality to work just fine, but it's not a long-term solution. For one thing, every auto-upgrade naturally replaces that file, so the same thing will happen next time.
I've googled around a bit and noticed plenty of tickets filed against Karmic when it was in beta, but nothing really definitive to solve the issue.
This Karmic ticket mentions it's fixed in karmic-proposed, so I added
Code:
deb http://us.archive.ubuntu.com/ubuntu/ karmic-proposed restricted main multiverse universe
to my /etc/apt/sources.list then did an apt-get update and apt-get upgrade, restarted Apache, but I'm still seeing the issue. Any advice would be appreciated!
_________________
Matt Legend Gemmell
Mac OS X / iPhone Developer
Blog:
http://mattgemmell.com/
Work:
http://instinctivecode.com/