Php

From MattWiki
Jump to: navigation, search
yum -y install openssl-devel pcre-devel libpcap-devel libcurl-devel enchant-devel t1lib-devel gmp-devel && \
cd /var/src && rm -rf php-5.4.3 && tar -xzf php-5.4.3.tar.gz && cd php-5.4.3 && \
./configure --prefix=/usr/local/php-opt --with-libdir=/lib64 --enable-embed --with-regex=php --disable-rpath \
--disable-static --with-pic --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath \
--with-bz2 --enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext \
--enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr \
--with-zlib --with-kerberos=/usr --with-openssl=shared --enable-soap --enable-zip --with-mhash=yes \
--with-system-tzdata --with-curl=shared,/usr --with-enchant=shared,/usr --with-zlib-dir=/usr --with-gd=shared,/usr \
--enable-gd-native-ttf --with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6 \
--with-png-dir=shared,/usr --with-freetype-dir=shared,/usr --enable-intl=shared --with-ttf=shared,/usr \
--with-t1lib=shared,/usr --with-ldap=shared,/usr --with-ldap-sasl=/usr --with-mysql=shared,/usr \
--with-mysqli=shared,/usr/bin/mysql_config --with-pspell=shared,/usr --with-recode=shared,/usr \
--with-xsl=shared,/usr --with-snmp=shared,/usr --with-sqlite=shared,/usr --with-sqlite3=shared,/usr \
--with-tidy=shared,/usr --with-xmlrpc=shared --enable-pdo=shared --without-pdo-dblib --with-pdo-mysql=shared,/usr \
--with-pdo-sqlite=shared,/usr --with-pdo-dblib=shared,/usr && make && make test