Install PHP under Mac OS X
- download apache 2 and install it under /usr/local/apache2 (default)
- download and install mysql 4.1.10 into /usr/local/mysql
- download php 5.0.3 source code
- start apache and mysql
- install libraries
libpng-1.2.16.tar.gz from http://www.libpng.org/pub/png/libpng.html
ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz
- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-gd --enable-gd-native-ttf --enable-mbstring --with-mysql=/usr/local/mysql --enable-zip --with-java=/Library/Java/Home --enable-gd-native-ttf
- in httpd.conf add:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- in /etc/php.ini
extension=mysql.so
extension=mbstring.so
mbstring.func_overload = 7

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home