Setup WordPress on Ubuntu Desktop AMI

After fresh install of Ubuntu 13 Desktop…

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install apache2
sudo a2enmod rewrite
sudo apt-get install libapache2-mod-php5
sudo service apache2 restart
cd /var/www
sudo nano index.php

Add <?php phpinfo(); ?> to index.php to test php. [path to your machine]/index.php

sudo apt-get install mysql-server
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
sudo apt-get install unzip

Visit [path to your machine]/phpmyadmin and create database for WP.

Download latest wordpress zip into /var/www and extract files there.

I’ll use /var/www as wordpress install on this AMI instance. I deleted the index.html and index.php. Fire up [path to your machine]/readme.html and follow WP installation instructions.

Hope this helps…