./configure - With-Apxs2 /usr/local/apache2/bin/apxs - With-Mysql Mysqlnd
./configure - With-Apxs2 /usr/local/apache2/bin/apxs - With-Mysql Mysqlnd
Install Apache export CFLAGS="-arch x86_64" configure options ./configure --enable-authn-anon --enable-authn-dbm --enable-authz-dbm --enable-auth-digest --enable-cache --enable-cern-meta --enable-deflate --enable-disk-cache --enable-expires --enable-file-cache --enable-headers --enable-info --enable-logio --enablemem-cache --enable-rewrite --enable-so --enable-ssl --enable-unique-id --enable-usertrack --with-mpm=prefork --enablemodule=so --host=i686-apple-darwin11.2.0 --build=i686-apple-darwin11.2.0 --with-ssl=/usr/local/openssl make make install 2. Install PHP
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd --host=i686-appledarwin11.2.0 --build=i686-apple-darwin11.2.0 --enable-debug --with-iconv --enable-zip --enable-mysqlnd --enable-exif --enable-ftp --with-openssl=/usr/local/openssl --enable-bcmath --enable-calendar --with-mhash --with-mysqli=mysqlnd --with-pdomysql=mysqlnd --enable-mbstring=all --with-tidy --with-curl --enable-sqlite-utf8 --with-kerberos --enable-soap -with-imapssl=/usr/local/openssl --enable-sockets --with-pear --prefix=/usr/local/php --with-pcre-regex --with-EXTENSION=[shared[,PATH]] NOTE: Not all extensions can be build as 'shared'. Example: --with-foobar=shared,/usr/local/foobar/ o Builds the foobar extension as shared extension. o foobar package install prefix is /usr/local/foobar/ EXTRA LIBS: --enable-intl --mhash --with-gd
--with-imap[=DIR] Include IMAP support. DIR is the c-client install prefix --with-mysql-sock[=DIR] MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. If unspecified, the default locations are searched --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes]
--with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix --with-png-dir[=DIR] GD: Set the path to libpng install prefix --with-zlib-dir[=DIR] GD: Set the path to libz install prefix --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix --with-t1lib[=DIR] GD: Include T1lib support. T1lib version >= 5.0.0 required --enable-gd-native-ttf GD: Enable TrueType string function --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support 3. install pear 4. oauth phpize
3. Install MySQL