Skip to content

Instantly share code, notes, and snippets.

@jamesmoey
Last active December 18, 2015 11:59
Show Gist options
  • Save jamesmoey/da3c4599cfba74de2aca to your computer and use it in GitHub Desktop.
Save jamesmoey/da3c4599cfba74de2aca to your computer and use it in GitHub Desktop.
Compile PHP from source code, install common pecl and pear component
yum install -y libicu-devel gmp-devel libpng-devel libjpeg-devel curl-devel libxml2-devel libmcrypt-devel ImageMagick-devel libtool-ltdl-devel libzip-devel openssl-devel
PREFIX=/opt/php-5.4; (./configure --prefix=$PREFIX --with-config-file-scan-dir=$PREFIX/etc/conf.d --with-config-file-path=$PREFIX/etc --enable-bcmath --with-curl --enable-debug --enable-zip --with-pdo-mysql=mysqlnd --with-mysql=mysqlnd --with-freetype-dir=/usr/include/freetype2/freetype --with-mysqli=mysqlnd --with-mcrypt --enable-mbstring --enable-intl --with-gd --enable-fpm --with-gmp --enable-soap --enable-sockets --with-openssl --with-zip --with-zlib --enable-pcntl --with-bz2 --enable-ftp --enable-gd-native-ttf && nice make && make install) | tee build.log
./pecl channel-update pecl.php.net
./pecl install mongo xdebug memcache apc imagick amqp gnupg ssh2
./pear clear-cache
./pear config-set auto_discover 1
./pear channel-discover pear.phpunit.de
./pear channel-discover components.ez.no
./pear channel-discover pear.symfony-project.com
./pear channel-discover pear.phing.info
./pear channel-discover pear.pdepend.org
./pear channel-discover pear.phpmd.org
./pear channel-discover pear.docblox-project.org
./pear channel-discover pear.phpdoc.org
./pear update-channels
./pear install -f --alldeps pear.phpunit.de/PHPUnit pear.phpdoc.org/PhpDocumentor pear.phing.info/phing phpunit/PHPUnit_Selenium
./pear config-set preferred_state alpha
./pear install VersionControl_SVN
./pear install VersionControl_Git
./pear config-set preferred_state stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment