Here’s some quick notes for installing WordPress on Ubuntu 10.

Official install doc:

I choose hosting on Linode, which has been an awesome experience so far, they have really good help guides too.


You’ll need MySql, PHP, Apache installed.

apt-get install apache2 apache2-doc apache2-utils

apt-get install libapache2-mod-php5 php5 php-pear php5-xcache php5-suhosin php5-mysql

apt-get install mysql-server

Run MySql Secure Installation


Enable Rewriting

a2enmod rewrite

Enable image support for php.

sudo apt-get install php5-gd

/etc/init.d/apache2 restart

Get It

wget > tar -xzvf latest.tar.gz


mysql -u adminusername -p

CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"localhost"
IDENTIFIED BY "password";

Setup Apache

Create the web root directories

mkdir /var/www/ -p <br />mkdir /var/www/

Create an apache virtual host config

See what’s there in the sites-available

ls /etc/apache2/sites-available/

Copy an existing config

cp /etc/apache2/sites-available/ /etc/apache2/sites-available/

Edit to match the correct location.

vim /etc/apache2/sites-available/

Copy the WP files to the site root

cp downloads/wordpress/* /var/www/ -r

Change owner

chown -R www-data /var/www/

Config WordPress

Rename the wp-config.php file

mv /var/www/ /var/www/

Edit the wp-config.php, set the correct db connection values, and replace the security lines from here

vim /var/www/

Enable the site


Restart apache

/etc/init.d/apache2 restart

Visit the site and configure WordPress!