Last active
December 13, 2015 23:59
-
-
Save gdugas/4995554 to your computer and use it in GitHub Desktop.
php-5.3 installation script for ubuntu 12.04
This file contains 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 | |
# | |
# php-5.3 installation script (ubuntu 12.04) | |
# | |
install_dir=/opt/php-5.3 | |
sudo apt-get install -y \ | |
build-essential \ | |
libxml2-dev \ | |
libssl-dev \ | |
libbz2-dev \ | |
libcurl4-openssl-dev \ | |
libjpeg8-dev libpng12-dev libgif-dev \ | |
libmcrypt-dev \ | |
libmysqlclient-dev\ | |
libltdl-dev | |
./configure \ | |
--prefix=$install_dir \ | |
--with-libdir=/lib/x86_64-linux-gnu \ | |
--with-config-file-path=$install_dir/conf \ | |
--with-config-file-scan-dir=$install_dir/conf.d \ | |
--enable-fpm \ | |
--with-fpm-user=www-data \ | |
--with-fpm-group=www-data \ | |
--enable-bcmath \ | |
--enable-calendar \ | |
--with-bz2 \ | |
--with-curl \ | |
--enable-dba \ | |
--enable-exif \ | |
--enable-ftp \ | |
--with-gd --enable-gd-native-ttf \ | |
--with-gettext \ | |
--enable-mbstring \ | |
--with-mcrypt \ | |
--with-mhash \ | |
--with-mysql --with-mysqli --with-pdo-mysql \ | |
--with-openssl \ | |
--with-pcre-regex \ | |
--with-pdo-sqlite \ | |
--enable-shmop \ | |
--enable-soap \ | |
--enable-sockets \ | |
--enable-zip \ | |
--with-zlib | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment