User Tools

Site Tools


Sidebar


guides:install:php_on_mac_os_x

Installing PHP on Mac OS X

To compile PHP with Postgres and other extension you will need to compile and install the following libraries

1) pecl

2) libjpeg

3) libpng

4) postgres

To compile PHP on Mac OS, grab the latest source from php.net



5) php

./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-exif --enable-ftp --with-gd  --enable-gd-native-ttf --with-ldap=/usr --with-ldap-sasl=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-iodbc=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --with-pcre-regex=/Users/sandrine/src/pcre/pcre-local/usr/local --with-pgsql=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local

Original Guides:

http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/ http://developer.apple.com/internet/opensource/postgres.html http://www.bill.eccles.net/bills_words/2010/01/building-a-mac-os-x-server-106.html http://www.dreamincode.net/forums/index.php?showtopic=9771

guides/install/php_on_mac_os_x.txt · Last modified: 2016/04/16 16:12 by michaelc