Archive for March, 2009

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

####################################
##              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

This site is now ipv6 live!

I took the server offline and decided to do some work on it. I installed a new OS and made a few changesto make it better/faster/flexible. The most important feature I have added is a ipv6 implementation of this site which is now live and working:

——————————————————————————————————–

C:\Users\me>ping -6 larmeir.com

Pinging larmeir.com [2607:f0d0:1002:2::] from 2001:470:1f0e:4ee::2 with 32 bytes
of data:
Reply from 2607:f0d0:1002:2::: time=10ms
Reply from 2607:f0d0:1002:2::: time=9ms
Reply from 2607:f0d0:1002:2::: time=10ms
Reply from 2607:f0d0:1002:2::: time=9ms

Ping statistics for 2607:f0d0:1002:2:::
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 10ms, Average = 9ms

—————————————————————————————————–

This makes my site more accessible and allows me to be on the cutting edge of network connectivity. The reason I was able to implement this was because softlayer (my host) recently enabled this feature on their networks http://softlayer.com/press_2009_01_21.html.

If you would like to test ipv6 please refer to my written howto on how to implement this on networks that do not support it yet with tunnelbroker http://larmeir.com/?p=354