Skip to content

Instantly share code, notes, and snippets.

@ohelmtcm
Created November 2, 2015 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohelmtcm/16a72de408d23d203b57 to your computer and use it in GitHub Desktop.
Save ohelmtcm/16a72de408d23d203b57 to your computer and use it in GitHub Desktop.
# General Requirements
yum install gcc openssl-devel pcre-devel libxml2-devel httpd httpd-devel mod_ssl libcurl-devel libpng-devel
yum groupinstall "Development Tools"
# FreeTDS
cd /usr/src
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz
tar -zxvf freetds-*
rm -rf freetds-*.tar.gz
cd freetds-*
./configure --prefix=/usr/local/freetds
make
make install
# ARP
cd /usr/src
wget http://apache.mirror.anlx.net/apr/apr-1.5.2.tar.gz
tar -zxvf apr-*
rm -rf apr-*.tar.gz
cd apr-*
./configure
make
make install
# ARP Util
cd /usr/src
wget http://apache.mirror.anlx.net//apr/apr-util-1.5.4.tar.gz
tar -zxvf apr-util-1.5.4.tar.gz
rm -rf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4/
./configure --with-apr=/usr/local/apr
make
make install
# PHP
cd /usr/src
wget http://uk1.php.net/get/php-5.6.8.tar.gz
mv mirror php-5.6.8.tar.gz
tar -zxvf php-5.6.8.tar.gz
rm -rf php-5.6.8.tar.gz
cd php-5.6.8
./configure --with-sybase_ct=/usr/local/freetds --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli --enable-mbstring --with-pdo-mysql --with-openssl --with-curl --with-gd --with-config-file-path=/etc/php.ini
make
make test
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment