Skip to content

Some notes from my L.A.M.P. installation

2009 March 6
by dlarmeir

####################################
##              Notes from my apache install                  ##
####################################
#Installing some prequisites I need – I am staying with the RedHat stable version of Mysql

yum -y install openssl-devel mysql-server mysql mysql-devel libxml2-devel freetype-devel libpng-devel curl-devel libjpeg-devel  libtool-ltdl libtool libtool-ltdl-devel

#making source directories

cd /usr/src/
mkdir apache2
mkdir php

#Getting sources for libmcrypt for my php compile

wget http://dag.wieers.com/rpm/packages/libmcrypt/libmcrypt-2.5.7-1.2.el5.rf.i386.rpm
wget http://dag.wieers.com/rpm/packages/libmcrypt/libmcrypt-devel-2.5.7-1.2.el5.rf.i386.rpm

#Install libmcrypt sources

rpm -ivh libmcrypt-2.5.7-1.2.el5.rf.i386.rpm
rpm -ivh libmcrypt-devel-2.5.7-1.2.el5.rf.i386.rpm

#Download apache,extract tarball and compile

cd apache2
wget http://apache.mirror99.com/httpd/httpd-2.2.11.tar.gz
tar xvzf httpd-2.2.11.tar.gz
cd httpd-2.2.11

./configure -prefix=/usr/local/apache2 –enable-so –enable-info –enable-cgi –with-mpm=prefork –enable-http –enable-ssl  –enable-suexec –enable-v4-mapped –enable-rewrite –enable-module-so –enable-cache –enable-diskcache –enable-expires –enable-file-cache –enable-mem-cache –enable-mime-magic –enable-vhost-alias –enable-usertrack –enable-proxy –enable-proxy-connect –enable-proxy-ftp –enable-proxy-http

make
make install

cd..

#Download php with elinks, extract tarball and compile

cd php
links http://us.php.net/get/php-5.2.9.tar.gz/from/us2.php.net/mirror
tar xvzf php-5.2.9.tar.gz
cd php-5.2.9

./configure -prefix=/usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs -with-config-file-path=/usr/local/apache2/php -with-mysql -with-pear=/usr/share/pear -enable-safe-mode -enable-ctype -enable-ftp -with-openssl=/usr -without-kerberos -with-freetype-dir=/usr -with-jpeg-dir -enable-soap -with-curl -with-gd -with-xmlrpc –enable-zip –with-mcrypt=/usr/local/bin/mcrypt

make
make install

#Create symlinks to make the apache server start on boot

ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/apache
ln -s /etc/rc.d/init.d/apache /etc/rc.d/rc3.d/S90apache

#Starting apache

/etc/init.d/apache start

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS