Skip to main content

PHP5 on Panther

Posted in

Special instructions for installing PHP5 on OS X 10.3

  • PCRE needs to be installed:
    wget http://superb-west.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz
    tar zxvf pcre-7.8.tar.gz
    cd pcre-7.8
    ./configure
    make
    make install
  • libxml is missing a necessary file for PHP5 and needs to be updated:
    curl -O ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
    tar zxf libxml2-2.7.3
    cd libxml2-2.73
    ./configure
    make
    sudo make install

    Link /usr/bin/xml2-config to the proper version:
    cd /usr/bin
    sudo mv xml2-config xml2-config.old
    sudo ln -s /usr/local/bin/xml2-config xml2-config

    PHP configure options
    --with-libxml-dir=/usr/local/lib \
    --with-pcre-dir=/usr/local/lib

    ./configure --with-libxml-dir=/usr/local/lib --without-pcre-regex --disable-filter --without-pear