Install Drupal on Ubuntu

#How to install Drupal 6 on Ubuntu 8.04
apt-get update; apt-get upgrade #first update to latest version
apt-get install -y ssh openssh-server vim-full
ln -sf /bin/bash /bin/sh
#http://howtoforge.com/perfect-server-ubuntu8.04-lts-p3 recommends the following:
apt-get -y install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential
apt-get -y install -y mysql-server apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
cp /etc/apache2/apache2.conf /etc/apache2/apache2.sav #make backup of apache configuration
vi /etc/apache2/sites-available/default #change AllowOverride to All in first two places to enable .htaccess
apt-get -y install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl # php5-ps & php5-json don't work
a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include

vi /etc/php5/apache2/php.ini #change memory_limit = 40M, post_max_size = 40M, upload_max_filesize = 20M
/etc/init.d/apache2 restart
echo "Test Page<?php phpinfo(); ?>" > /var/www/testphp.php
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.430_all.deb
dpkg -i webmin_1.430_all.deb
apt-get install -f #to satisfy dependencies
apt-get install phpmyadmin
apt-get install postfix #if you need the server to send email

use webmin/postfix/general to send outgoing mail via ISP's SMTP if necessary