— PREPARE —
1. Install MacPort
2. sudo port install pcre jpeg libpng mcrypt ImageMagick
3. Download PHP, Nginx, Redis, MySQL
— Compile & Install —
1. MySQL dmg
2. Nginx
./configure –prefix=/opt/nginx
make
make install
3. Redis
make PREFIX=/opt/redis install
4. PHP
./configure –prefix=/opt/php53 –with-config-file-path=/opt/php –with-mysql=mysqlnd –with-pdo-mysql=mysqlnd –with-iconv=/opt/local –with-xsl –enable-xml –with-libxml-dir –disable-rpath –enable-safe-mode –enable-bcmath –enable-shmop –enable-sysvsem –enable-inline-optimization –with-libexpat-dir=/usr/lib –with-curl –with-curlwrappers –enable-mbregex –enable-ftp –with-gd –enable-zip –enable-sockets –enable-soap –enable-mbstring=all –with-mcrypt=/opt/local –enable-gd-native-ttf –with-freetype-dir=/opt/local –with-zlib –without-pdo-sqlite –enable-fpm –with-snmp –without-sqlite –without-pdo-sqlite –with-openssl –with-jpeg-dir=/opt/local –with-png-dir=/opt/local –with-xpm-dir=/opt/local
make
make install
sudo pecl install imagick
// prefix = /opt/local
— Configure —
…..
Read: 1121