Skip to content

Instantly share code, notes, and snippets.

@ichikaway
Created December 29, 2010 01:25
Show Gist options
  • Save ichikaway/758012 to your computer and use it in GitHub Desktop.
Save ichikaway/758012 to your computer and use it in GitHub Desktop.
php install with compile on CentOS
yum install libmcrypt libmcrypt-devel mhash mhash-devel
./configure -prefix=/usr/local/php-5.3.4 --with-apxs2=/usr/local/apache/bin/apxs \
--enable-cli --enable-mbstring --enable-mbregex \
--with-mysql=/usr/local/mysql/ --enable-zend-multibyte \
--enable-pdo --with-pdo-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-curl --with-iconv --enable-sockets \
--with-gd --with-freetype-dir=/usr/lib --with-jpeg-dir=shared \
--with-zlib-dir=shared --enable-gd-native-ttf --enable-gd-jis-conv \
--with-config-file-path=/usr/local/php/etc --with-openssl --with-mcrypt --with-mhash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment