Skip to content

Instantly share code, notes, and snippets.

@TomCan
Last active November 3, 2017 14:30
Show Gist options
  • Save TomCan/9611446 to your computer and use it in GitHub Desktop.
Save TomCan/9611446 to your computer and use it in GitHub Desktop.
Compile PHP on clean debian 7
apt-get update
apt-get -y install libxml2-dev libssl-dev pkg-config libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libfreetype6-dev libgmp-dev libc-client-dev libicu-dev libmcrypt-dev freetds-dev libmysqlclient-dev libpq-dev libxslt-dev apache2-suexec-custom
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so.5 /usr/lib/libsybdb.so.5
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so
cd php-5.X.XX
./configure --with-freetype-dir=/usr/lib --prefix=/usr/local/php-5.X.XX --with-mysql --with-mysqli --with-mssql --enable-exif --enable-soap --with-mcrypt --with-mhash --with-curl --enable-mbstring --with-gettext --with-zlib --enable-ftp --with-openssl --with-xsl --with-pgsql --enable-calendar --enable-bcmath --with-bz2 --with-imap --with-imap-ssl --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-gd --enable-zip --with-xmlrpc --enable-sockets --enable-intl --with-gmp
@TomCan
Copy link
Author

TomCan commented Jul 15, 2014

./configure --with-freetype-dir=/usr/lib --prefix=/bamboo-worker/php-5.3.28 --with-mysql --with-mysqli --with-mssql --enable-exif --enable-soap --with-mcrypt --with-mhash --with-curl --enable-mbstring --with-gettext --with-zlib --enable-ftp --with-openssl --with-xsl --with-pgsql --enable-calendar --enable-bcmath --with-bz2 --with-imap --with-imap-ssl --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-gd --enable-zip --with-xmlrpc --enable-sockets --enable-intl --with-gmp --with-kerberos

./configure --with-freetype-dir=/usr/lib --prefix=/bamboo-worker/php-5.4.30 --with-mysql --with-mysqli --with-mssql --enable-exif --enable-soap --with-mcrypt --with-mhash --with-curl --enable-mbstring --with-gettext --with-zlib --enable-ftp --with-openssl --with-xsl --with-pgsql --enable-calendar --enable-bcmath --with-bz2 --with-imap --with-imap-ssl --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-gd --enable-zip --with-xmlrpc --enable-sockets --enable-intl --with-gmp --with-kerberos

./configure --with-freetype-dir=/usr/lib --prefix=/bamboo-worker/php-5.5.14 --with-mysql --with-mysqli --with-mssql --enable-exif --enable-soap --with-mcrypt --with-mhash --with-curl --enable-mbstring --with-gettext --with-zlib --enable-ftp --with-openssl --with-xsl --with-pgsql --enable-calendar --enable-bcmath --with-bz2 --with-imap --with-imap-ssl --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-gd --enable-zip --with-xmlrpc --enable-sockets --enable-intl --with-gmp --with-kerberos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment