Quick lighttpd, PHP, iMagick setup on Ubuntu 8.10 Intrepid

Install lighttpd:

sudo aptitude install lighttpd

Install PHP and ImageMagick:

sudo aptitude install php5-common php5-dev php5-mysql php5-sqlite php5-cgi php5-curl php5-gd php-pear libmagick9-dev

Install iMagick:

sudo pecl install imagick

Press enter on prompt.

Add the following to the bottom of /etc/php5/cgi/php.ini:

extension=imagick.so

Then:

sudo lighttpd-enable-mod fastcgi
sudo /etc/init.d/lighttpd reload

Install PHP5, lighttpd and Imagick on Mac OS X Leopard

It’s a little tricky getting a nice clean install of PHP5 for OS X 10.5. The packages that I always used to depend on over at Entropy don’t seem to work anymore. At least not for Leopard. A great shame.

I’m now switching to lighttpd for my development server, so have come up with the following recipe to install PHP5 and the great Imagick extension for image manipulation.

(more…)