* http://www.macdevcenter.com/lpt/a/3133
=== Install Apache2, PHP and MySQL on OS X (10.3) ===
You will find here some notes and tips to compile PHP5 on OS X. Credits go to chregu at biflux.ch who helped me out especially with the PHP5 configure setting. -- UrsGehrig
If the above configure does not work because some libraries are missing, then apply something like the following:
rm ./config.cache before you apply another ./configure
me:/tmp/php-5.0.0b4 urs$ make
me:/tmp/php-5.0.0b4 urs$ sudo make install
Password:
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libs/libphp5.so /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libs/libphp5.so /usr/local/apache2/modules/
cp libs/libphp5.so /usr/local/apache2/modules/libphp5.so
Warning! dlname not found in /usr/local/apache2/modules/libphp5.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/php5/bin/
Installing PHP CLI man page: /usr/local/php5/man/man1/
Installing build environment: /usr/local/php5/lib/php/build/
Installing header files: /usr/local/php5/include/php/
Installing helper programs: /usr/local/php5/bin/
program: phpize
program: php-config
program: phpextdist
me:/tmp/php-5.0.0b4 urs$
me:/usr/sbin urs$ php5 -v
PHP 5.0.0b4 (cli) (built: Mar 6 2004 15:48:06) (DEBUG)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies
=== Comments: ===
* Acutally Freetype support using --with-freetype-dir=/sw/ did not work, even though all libraries were there. -- UrsGehrig
* Found the solution for the freetype2 problem in http://www.oreillynet.com/cs/user/view/cs_msg/31315; just specify --with-freetype-dir=/sw/lib/freetype2/ for a fink installation or with Apple's X11 --with-freetype-dir=/usr/X11R6 -- UrsGehrig