Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development
Package Installation
From Terminal, execute the following command to install the required packages:
sudo apt-get install apache2 mysql-server mysql-admin mysql-query-browser mysql-client mysql-navigator php5 libapache2-mod-php5 php5-gd php5-mysql php5-cli php5-curl kcachegrind php5-ffmpeg php5-mcrypt php5-imagick php5-xdebug phpmyadmin
Additional Configuration
1. To fix the Fully Qualified Domain Name issue for Apache