Posts Tagged ‘PHP5’

PHP-GD on OSX 10.5 Leopard

Wednesday, November 7th, 2007

Adding GD Library on Mac OS X Leopard

nice write up without recompiling apache & php etc.

But /SourceCache should be ~/SourceCache :)

EDIT:

I’ve switched (actually since Tiger) to everything MacPorts (MySQL,Ruby,PHP,Python,Perl). It’s just not worth wasting the time fixing Apple’s broken (=missing) packages.

So do yourself a favor and use MacPorts

It’s easy and clean :

- Download & Install

Sync:

jca@kitten:~ $ sudo port sync

Search for Ports starting with “php” :

jca@kitten:~ $ port search ^php

MySQL :

jca@kitten:~ $ sudo port install mysql5 +server

Read the Tips after the installation (LaunchDaemon Config !)

jca@kitten:~ $ sudo port install mysql5-devel

Variants of the Apache2 package :

jca@kitten:~ $ sudo port variants apache2

We want the preforkmpm

jca@kitten:~ $ sudo port install apache2 +preforkmpm

Variants of the PHP5 package :

jca@kitten:~ $ port variants php5

If i want PHP5 with MySQL (who doesn’t) etc. :

jca@kitten:~ $ sudo port install php5 +mysql5 +apache2 +sqlite +pear

The Resulting PHPInfo

(GD etc. is already built-in)

PS: For the CLI haters :P there is a Cocoa FrontEnd available : Porticus

Have fun :)