Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by Daniel ( 15 years ago )
#!/bin/bash
# PHP5.4 + nginx installer, Daniel Stobbe
builddate=$(date "+%Y%m%d_%H%M%S")
#create building dir
mkdir build$builddate
cd build$builddate
#install needed libs/tools for build
port self-update
port update outdated
port install autoconf automake libtool bison flex re2c libiconv openssl fcgi nginx >> ./00_port_install_packages
#checkout latest source
svn checkout https://svn.php.net/repository/php/php-src/branches/PHP_5_4 php-src-5.4-$builddate >> ./01_svn_checkout_php5.4_source
cd php-src-5.4-$builddate
#generate the configure script
./buildconf
./configure --with-iconv=/opt/local --enable-cgi --enable-fpm --with-fpm-user=dast --enable-exif --enable-pdo --with-pdo-mysql=/opt/local/lib/mysql5/ --enable-zip >> ./02_configure_php
make >> ./03_make_php
make test
make install >> ./03_make_install_php
Revise this Paste