LAMP installation from source code ( tarball) on linux
Tested with ubuntu 12.04 LTS with mysql version 5.1.71, php 5.3.25 and apache 2.2.25 bellow packages must be installed on ubuntu sudo apt-get install zlib1g-dev libncurses5-dev sudo apt-get install g++ sudo apt-get install libgdbm-dev sudo apt-get install libxml2-dev Installing MySQL 5.1 Download MySQL source tarballs Open a terminal and login Extract the source to some folder(say ‘/usr/src/mysql’). $ sudo mkdir /usr/src/mysql $ sudo cp mysql-VERSION.tar.gz /usr/src/mysql $ cd /usr/src/mysql $ tar -xvf mysql-VERSION.tar.gz $ cd mysql-VERSION For added security we will create a new user called ‘mysql’ and use this user while running MySQL. $ sudo groupadd mysql $ sudo useradd -g mysql mysql Lets compile $ ./configure --prefix=/usr/local/mysql $ make $ make install configure MySQL . $ cp support-files/my-medium.cnf /etc/my.cnf $ cd /usr/local/mysql $ sudo mkdir /usr/local/mysql/var $ bin/mysql_install_db --user=mysql $ chown -R root.mysql . $ chown