Created
November 28, 2013 17:48
-
-
Save smalot/7695811 to your computer and use it in GitHub Desktop.
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
http://www.tipcache.com/tip/Build_PHP_as_a_static_binary_15.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get install apache2-prefork-dev | |
apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libdb4.8-dev libjpeg62-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev libt1-dev libgd2-xpm-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev libxslt1-dev libmcrypt-dev | |
wget "" | |
tar zxvf "" | |
cd "" | |
./configure \ | |
--prefix=/usr/share/php53 \ | |
--datadir=/usr/share/php53 \ | |
--mandir=/usr/share/man \ | |
--bindir=/usr/bin/php53 \ | |
--with-libdir=lib64 \ | |
--includedir=/usr/include \ | |
--sysconfdir=/etc/php53/apache2 \ | |
--with-config-file-path=/etc/php53/cli \ | |
--with-config-file-scan-dir=/etc/php53/conf.d \ | |
--localstatedir=/var \ | |
--disable-debug \ | |
--with-regex=php \ | |
--disable-rpath \ | |
--disable-static \ | |
--disable-posix \ | |
--with-pic \ | |
--with-layout=GNU \ | |
--with-pear=/usr/share/php \ | |
--enable-calendar \ | |
--enable-sysvsem \ | |
--enable-sysvshm \ | |
--enable-sysvmsg \ | |
--enable-bcmath \ | |
--with-bz2 \ | |
--enable-ctype \ | |
--without-gdbm \ | |
--with-iconv \ | |
--enable-exif \ | |
--enable-ftp \ | |
--enable-cli \ | |
--with-gettext \ | |
--enable-mbstring \ | |
--enable-shmop \ | |
--enable-sockets \ | |
--enable-wddx \ | |
--with-libxml-dir=/usr \ | |
--with-zlib \ | |
--with-kerberos=/usr \ | |
--enable-soap \ | |
--enable-zip \ | |
--with-mhash \ | |
--with-exec-dir=/usr/lib/php5/libexec \ | |
--without-mm \ | |
--with-curl=shared,/usr \ | |
--with-zlib-dir=/usr \ | |
--with-gd=shared,/usr \ | |
--enable-gd-native-ttf \ | |
--with-jpeg-dir=shared,/usr \ | |
--with-xpm-dir=shared,/usr/X11R6 \ | |
--with-png-dir=shared,/usr \ | |
--with-freetype-dir=shared,/usr \ | |
--with-ttf=shared,/usr \ | |
--with-t1lib=shared,/usr \ | |
--with-ldap=shared,/usr \ | |
--with-mysql=shared,/usr \ | |
--with-mysqli=shared,/usr/bin/mysql_config \ | |
--with-pgsql=shared,/usr \ | |
--with-pspell=shared,/usr \ | |
--with-unixODBC=shared,/usr \ | |
--with-xsl=shared,/usr \ | |
--with-snmp=shared,/usr \ | |
--with-sqlite=shared,/usr \ | |
--with-tidy=shared,/usr \ | |
--with-xmlrpc=shared \ | |
--enable-pdo=shared \ | |
--without-pdo-dblib \ | |
--with-pdo-mysql=shared,/usr \ | |
--with-pdo-pgsql=shared,/usr \ | |
--with-pdo-odbc=shared,unixODBC,/usr \ | |
--with-pdo-dblib=shared,/usr \ | |
--enable-force-cgi-redirect --enable-fastcgi \ | |
--with-libdir=/lib/x86_64-linux-gnu \ | |
--with-pdo-sqlite=shared \ | |
--with-sqlite=shared \ | |
--enable-ipv6 \ | |
--with-mcrypt | |
make | |
make test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment