Skip to content

Instantly share code, notes, and snippets.

@andersonfraga
Created March 20, 2013 13:43
Show Gist options
  • Save andersonfraga/5204725 to your computer and use it in GitHub Desktop.
Save andersonfraga/5204725 to your computer and use it in GitHub Desktop.
install_apache_php
apt-get -y -q install make g++ flex bison build-essential zlib1g-dev binutils \
cmake automake autoconf libmcrypt-dev libmhash-dev libxslt1-dev \
libtidy-dev libbz2-dev libxml2-dev libssl-dev curl vim git perl \
libpng12-dev libpng12-0 libpng3 libjpeg62 libjpeg62-dev libxpm-dev libpcre3 \
libpcre3-dev zlib1g zlib1g-dev libltdl-dev libltdl7 pkg-config \
libcurl4-openssl-dev libfreetype6 libfreetype6-dev libc-client2007e \
libc-client2007e-dev libkrb5-3 libkrb5-dev openssl \
libcurl4-openssl-dev libicu-dev libpspell-dev curl-dev \
linux-libc-dev libc-dev-bin libc-bin libc-client2007e-dev eglibc-source \
libkrb5-3 libkrb5-dev libkrb53 libkrb5support0 libncurses5-dev libncurses5 \
ncurses-base ncurses-bin ncurses-term libaio-dev libedit-dev lynx
mkdir /opt/src/
cd /opt/eglibc-source
curl -O http://archive.apache.org/dist/httpd/httpd-2.2.17.tar.bz2
tar --extract --bzip2 --file httpd-2.2.17.tar.bz2
cd httpd-2.2.17
./configure --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-deflate --enable-expires --enable-headers --enable-usertrack --enable-cgi --enable-vhost-alias --enable-rewrite --enable-so --with-apr=/usr/local/apr && make && make install
ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libjpeg.a /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libpng.so /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libpng.a /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libxml2.so /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libxml2.a /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libXpm.so /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libXpm.a /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libcurl.so /usr/lib/
ln -s /usr/lib/i386-linux-gnu/libcurl.a /usr/lib/
curl -O http://br.php.net/distributions/php-5.4.0.tar.gz
tar --extract --gzip --file curl -O php-5.4.0.tar.gz
cd php-5.4.0
./configure --disable-debug --enable-inline-optimization --enable-libxml --enable-session --enable-xml --enable-hash --with-pear --with-layout=GNU --enable-filter --with-pcre-regex --with-zlib --enable-simplexml --enable-xmlwriter --enable-pdo --with-pdo-sqlite --with-readline --with-sqlite3 --with-iconv --disable-phar --with-libedit --enable-exif --with-bz2 --with-gettext --with-mcrypt --with-mhash --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-xsl --with-tidy --with-freetype-dir --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-dom --enable-xml --enable-soap --enable-libxml --enable-session --enable-simplexml --with-kerberos --with-curl --with-mysql-sock --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-apxs2=/usr/local/apache2/bin/apxs --enable-so --with-xml --with-libxml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment