Skip to content

Instantly share code, notes, and snippets.

@cnix
Created July 27, 2008 10:56
Show Gist options
  • Save cnix/2771 to your computer and use it in GitHub Desktop.
Save cnix/2771 to your computer and use it in GitHub Desktop.
Build lighty and php for leopard
#Build lighty and php for leopard
curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-6.6.tar.gz
tar xzvf pcre-6.6.tar.gz
cd pcre-6.6
./configure --prefix=/usr/local CFLAGS=-O1
make
sudo make install
curl -O http://lighttpd.net/download/lighttpd-1.4.11.tar.gz
tar xzvf lighttpd-1.4.11.tar.gz
cd lighttpd-1.4.11
./configure --prefix=/usr/local --with-pcre=/usr/local
make
sudo make install
# Download and untar latest php source
./configure --enable-fastcgi --enable-discard-path --enable-force-redirect --with-zlib --with-xml --with-mysql=/usr/local/mysql --prefix=/usr/local/php5-fcgi --disable-cli --enable-memory-limit --with-layout=GNU --with-regex=php
make
sudo make install
sudo mv /usr/local/php5-fcgi/bin/php-cgi.dSYM /usr/local/php5-fcgi/bin/php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment