Building and installing php5 on OS X

./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/sbin/apxs --with-tidy=/opt/local/ --enable-shmop --enable-sysvsem --enable-sysvshm

apxs is the apache thingy which generates the module (.so) file.

I installed tidy using darwinports: sudo port install tidy

The php makefile adds the necessary directives to your httpd.conf file.

2 Responses to “Building and installing php5 on OS X”


  1. 1 Daniel Lord

    Works for me on a Macbook while Marc L’s beta for Intel for PHP5 does not for some reason. Mpkgs are a nice end-user feature, but debugging the build is impossible ( of course) and figuring out what the nstaller does and where teh isntall goes wrong is diffcult. Good old ./configure, make, make isntall allows me to customize teh build/install to fit my platform and is best for me. I stay away from fnk though–brilliant idea, but I prefer to keep things less complex.

  2. 2 boice

    I found that marc’s install was not working for me either. But I run with short open tags on and marc’s install had short open tags set to off. After making that change marc’s install worked fine.

    -boice

Leave a Reply




Close
Powered by ShareThis