Created
November 28, 2013 23:30
-
-
Save smalot/7699429 to your computer and use it in GitHub Desktop.
compile for php 5.2 and 5.3
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
http://davejamesmiller.com/blog/how-to-install-php-5-2-fastcgi-on-debian-6-0-squeeze
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
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
./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 \ | |
--with-pcre-regex=/usr \ | |
--enable-shmop \ | |
--enable-sockets \ | |
--enable-wddx \ | |
--with-libxml-dir=/usr \ | |
--with-zlib \ | |
--with-kerberos=/usr \ | |
--with-openssl=/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-gmp=shared,/usr \ | |
--with-jpeg-dir=shared,/usr \ | |
--with-xpm-dir=shared,/usr/X11R6 \ | |
--with-png-dir=shared,/usr \ | |
--with-freetype-dir=shared,/usr \ | |
--with-t1lib=shared,/usr \ | |
--with-ldap=shared,/usr \ | |
--enable-cgi \ | |
--with-libdir=/lib/x86_64-linux-gnu \ | |
--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 \ | |
--with-pdo-sqlite=shared \ | |
--with-sqlite=shared \ | |
--enable-ipv6 \ | |
--with-mcrypt \ | |
--with-imap-ssl |
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
./configure \ | |
--prefix=/usr/share/php52 \ | |
--datadir=/usr/share/php52 \ | |
--mandir=/usr/share/man \ | |
--bindir=/usr/bin/php52 \ | |
--with-libdir=lib64 \ | |
--includedir=/usr/include \ | |
--sysconfdir=/etc/php52/apache2 \ | |
--with-config-file-path=/etc/php52/cli \ | |
--with-config-file-scan-dir=/etc/php52/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 \ | |
--with-pcre-regex=/usr \ | |
--enable-shmop \ | |
--enable-sockets \ | |
--enable-wddx \ | |
--with-libxml-dir=/usr \ | |
--with-zlib \ | |
--with-kerberos=/usr \ | |
--with-openssl=/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-gmp=shared,/usr \ | |
--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 \ | |
--enable-force-cgi-redirect --enable-fastcgi \ | |
--with-libdir=/lib/x86_64-linux-gnu \ | |
--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 \ | |
--with-pdo-sqlite=shared \ | |
--with-sqlite=shared \ | |
--enable-ipv6 \ | |
--with-mcrypt \ | |
--with-imap-ssl |
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
apt-get install libapache2-mod-cgi | |
a2enmod actions cgi | |
a2dismod php5 | |
apt-get build-dep php5 | |
apt-get install libfcgi-dev libmhash-dev | |
apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug | |
apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libjpeg8-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev postgresql-server-dev-9.1 libt1-dev libgd2-xpm-dev libgmp-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev libxslt1-dev libmcrypt-dev | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment