Index syndication
comment syndication

PHP5 Zip Support on OpenBSD 4.5

August 18, 2009 at 01:37 · Filed under openbsd, unix, webdev

This is a cheat sheet on getting PHP5 on OpenBSD to have zip support. I needed this to get CiviCRM to work with Joomla.

First off install some require packages, including the zziplib package:

export PKG_PATH=
pkg_add -v zziplib
pkg_add -v autoconf-2.62

Now download and extract the PECL zip package:

mkdir /usr/local/src/
cd /usr/local/src/
tar zxvf zip
cd zip-1.10.2/

Compile PECL zip, making sure you set your correct autoconf to use:

make install

Finally setup php5 and restart httpd:

cat << EOF >> /var/www/conf/php.ini
sudo apachectl stop
sudo apachectl start

Of course, this will go stale over time as new releases and versions come out, so YMMV.

genok said,

January 23, 2010 @ 22:26

Thanks mate. Very usefull.

synapse said,

October 20, 2012 @ 01:05

thanks man! it still work on 5.1, but you need execute configure –with-php-config=/usr/local/bin/php-config-5.3

RSS feed for comments on this post · TrackBack URI

Leave a Comment