Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Forked from phatduckk/gist:178973
Created December 9, 2009 09:13
Show Gist options
  • Save pcdinh/252358 to your computer and use it in GitHub Desktop.
Save pcdinh/252358 to your computer and use it in GitHub Desktop.
# php 5.3 snow leopard
# need 64 bit mysql as /usr/local/mysql
# compile apache
./configure --enable-layout=Darwin --enable-mods-shared=all
make
sudo make install
# now configure php. then make; sudo make install
./configure \
--with-apxs2=/usr/sbin/apxs \
--prefix=/usr/local/php5.3.0 \
--with-config-file-scan-dir=/etc/php/ini.d \
--with-config-file-path=/etc/php/php.ini \
--disable-posix \
--enable-cli \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-jpeg-dir=/opt/local/include \
--with-png-dir=/opt/local/include \
--enable-gd-native-ttf \
--with-freetype-dir=/opt/local \
--with-zlib \
--enable-pdo \
--with-pdo-sqlite \
--with-sqlite=shared \
--enable-sqlite-utf8 \
--with-pdo-mysql=shared,/usr/local/mysql \
--with-xsl \
--enable-soap \
--enable-mbstring \
--with-zlib-dir=/usr \
--with-ldap \
--with-xmlrpc \
--with-libxml-dir=shared,/opt/local \
--with-curl \
--with-gd \
--enable-gd-native-ttf \
--with-jpeg-dir=/opt/local \
--with-png-dir=/usr/X11R6 \
--with-freetype-dir=/usr/X11R6 \
--with-xpm-dir=/usr/X11R6 \
--enable-sockets \
--with-pear=/usr/local/php/pear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment