Amazon Linux AMI as LAMP setup

Aside

The following guide demonstrates how to install Apache Webserver 2.2, PHP 5.3, MySQL Server 5.1 (Community Edition) and Perl (without mod_perl).

sudo yum install -y httpd php php-pear mysql mysql-server perl php-common php-dba php-pdo php-mysql php-xml php-xmlrpc

Then start Apache HTTPD and MySQL Server:

sudo /etc/init.d/mysqld start
sudo /etc/init.d/httpd start

And make sure it`s always loaded on startup:
sudo chkconfig --level 2345 httpd on
sudo chkconfig --level 2345 mysqld on

Linux Kernel 2.6.38 installation guide for Ubuntu Linux

Aside

This short walkthrough describes how to get the latest linux kernel working under Ubuntu Linux without having to compile it yourself.

This tutorial should work with the latest version of Ubuntu Linux (10.04 LTS, 10.10, 11.04) and most distributions based on these versions of Ubuntu Linux like Mint.

The included kernel files have been compiled using the generic ubuntu configuration.
Note: nVIDIA ForceWare drivers are automatically installed using DKMS, if you have these installed and up-to-date.

Installation Guide

  1. Download the kernel headers package;

    linux-headers-2.6.38-020638_2.6.38-020638.201103151303_all.deb
  2. And the appropriate package for your system

    I386: linux-headers-2.6.38-020638-generic_2.6.38-020638.201103151303_i386.deb

    AMD64: linux-headers-2.6.38-020638-generic_2.6.38-020638.201103151303_amd64.deb
  3. And the accompanying compiled kernel;

    I386: linux-image-2.6.38-020638-generic_2.6.38-020638.201103151303_i386.deb

    AMD64: linux-image-2.6.38-020638-generic_2.6.38-020638.201103151303_amd64.deb
  4. Install the files in the same order (else it won`t work!)
  5. In the terminal run:

    sudo update-grub
  6. Reboot and select the kernel from the bootloader menu

    If it`s not there check all steps (and of course errors)

The source? www.kernel.org

OpenSuSE 11.4 LAMP installation guide

Aside

The following guide demonstrates how to install Apache 2.2, PHP 5.3 and MySQL 5.1 in OpenSuSE linux version 11.4.

I will not guide you through the installationsteps, so I start  after booting the machine and logging in.

You have to be logged in as root (using the sudo command).

By entering the following code into the commandline you install MySQL, Apache, PHP and the basic/required third party modules.

sudo
yast2 -i mysql mysql-community-server mysql-client perl-DBD-mysql perl-DBI perl-Data-ShowTable
chkconfig --add mysql
/etc/init.d/mysql start
yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel
yast2 -i ImageMagick curl
yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm
chkconfig --add apache2
/etc/init.d/apache2 start

Bash 4.2 installation for Linux

Aside

This guide is for almost every Linux distribution.

Prerequisite is that you have the required build tools installed already.

If not, do the following step:

Debian and Ubuntu users way;

sudo apt-get install build-essential

The Fedora/Red Hat way:

sudo yum groupinstall "Development Tools" "Legacy Software Development"

First step is getting the source package

wget http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz

Next step is compiling and installing it;

tar xf bash-4.2.tar.gz
cd bash-4.2
./configure
make
sudo make install
sh

Linux Kernel 2.6.37 installation guide for Ubuntu Linux

Aside

This short walkthrough describes how to get the latest linux kernel working under Ubuntu Linux without having to compile it yourself.

This tutorial should work with the latest version of Ubuntu Linux (10.04 and 10.10 ) and most distributions based on these versions of Ubuntu Linux like Mint.

The included kernel files have been compiled using the generic ubuntu configuration.
Note: nVIDIA ForceWare drivers are automatically installed using DKMS, if you have these installed and up-to-date.

Installation Guide

  1. Download Download your kernel headers package;

    linux-headers-2.6.37-020637_2.6.37-020637.201101050908_all.deb
  2. And more of that;

    I386: linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb

    AMD64: linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb
  3. Download your kernel compile;

    I386: linux-image-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb

    AMD64: linux-image-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb
  4. Install the files in the same order (else it won`t work!)
  5. In the terminal run:

    sudo update-grub
  6. Reboot and select the kernel from the bootloader menu

    If it`s not there check all steps (and ofcourse errors)

And if you want, you can find the source here: