Skip to content

Instantly share code, notes, and snippets.

@ptdorf
Created October 16, 2011 18:27
Show Gist options
  • Save ptdorf/1291236 to your computer and use it in GitHub Desktop.
Save ptdorf/1291236 to your computer and use it in GitHub Desktop.
Compile LAMP from source
===OPENSSL===
cd /opt/build
tar -zxvf ../downloads/openssl-1.0.0e.tar.gz
cd openssl-1.0.0e
./config --prefix=/usr/local
make
sudo make install
===APACHE2===
tar -zxvf ../downloads/httpd-2.2.19.tar.gz
cd httpd-2.2.19
./configure \
--prefix=/usr/local/apache2 \
--enable-so \
--enable-auth-digest \
--enable-rewrite \
--enable-setenvif \
--enable-mime \
--enable-deflate \
--enable-ssl \
--with-ssl=/usr/local \
--enable-headers
make
sudo make install
===PHP===
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mysql-sock=/tmp/mysql.sock \
--with-sqlite \
--enable-sqlite-utf8 \
--with-zlib \
--with-zlib-dir \
--with-bz2 \
--with-gd \
--enable-gd \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-ttf \
--with-freetype-dir=/usr/local \
--with-iconv=/usr/local \
--with-curl=/usr/local \
--enable-track-vars \
--with-gettext \
--with-config-file-path=/usr/local/apache2/conf \
--enable-trans-id \
--enable-ftp \
--with-cpdflib=/usr/local \
--enable-mbstring \
--with-openssl=/usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment