Home > EC2, Ubuntu, Wordpress > Setting up WordPress on Ubuntu

Setting up WordPress on Ubuntu

I just did several projects that required a wordpress install. The setup I used was Ubuntu (ami-5059be39) on EC2, apache and mysql obviously ;). Here is a script I used to prep the system and install necessary libraries

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install git-core
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql server
sudo apt-get install phpmyadmin

Download WordPress and extract to a directory. I used /home/ubuntu/projectname.

Then sym link this directory to /var/www/projectname. When you are done, edit apache conf file, which is located at /etc/apache2/sites-enabled/projectname, to point to the deploy directory:

DocumentRoot /var/www/<strong>projectname

You can use the 000-default file if you want, but I usually rename it to the project name I’m working on to avoid confusion (or if you have more than one subdomain or website running on the same machine).

Last step, restart apache:

sudo /etc/init.d/apache 2 restart

Good luck.

Edit (3/3/2011): updated code formatting.

  1. November 8, 2009 at 6:34 am

    Nice Post, btw do you know any good usenet archives and or mailing list archives site for unix / linux / bsd

  1. July 8, 2014 at 1:48 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: