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…

Install Ruby on Rails

I am embarking on a Ruby on Rails adventure to learn more about it. I hear it has great things so I started my own rails rig in my virtual machine. I am still a .NET guy but I would be a fool not to learn more about this great language and platform.

I used sqlite3 into this install but feel free to use a different database.

Base rig:

  1. VirtualBox
  2. Ubuntu

Ruby and Rails framework installation:

  1. Login to Ubuntu.
  2. Make sure your Ubuntu is up to date:
    sudo apt-get update
    sudo apt-get dist-upgrade
  3. Install base build tools. You need this to install other packages so do not skip this:
    sudo apt-get install build-essential
  4. Install Ruby:
    sudo apt-get install ruby ruby1.8-dev
  5. Install RubyGems:
    sudo apt-get install rubygems
  6. Install Rake:
    sudo gem install rake
  7. Install Rails:
    sudo gem install rails
  8. Install sqllite3:
    sudo apt-get install sqlite3 libsqlite3-dev
    sudo gem install sqlite3-ruby
  9. Install Gherkin
    sudo gem install gherkin
  10. Install Rspec:
    sudo gem install rspec-rails
  11. Install Webrat:
    sudo apt-get install libxslt1-dev libxml2-dev
    sudo gem install webrat
  12. Install Cucumber:
    sudo gem install cucumber
  13. Install Mongrel:
    sudo gem install mongrel

This is it…