This guide is probably not necessary, but more for my reference. WordPress is extremely simple to install and their guides are easy to follow. But here we go!

Note: WordPress does not get installed, its downloaded and moved somewhere Apache can serve it. This makes it very easy to have multiple WordPress installs on one server!

Pre-Req: LAMP

PHP 5.6 or greater
MySQL 5.5 or greater
The mod_rewrite Apache module

Create MySQL DB:

mysql -u root -p
CREATE DATABASE [DB_NAME];
CREATE USER [DB_USERNAME]@localhost IDENTIFIED BY '[DB_PASSWD]';
GRANT ALL PRIVILEGES ON [DB_NAME].* TO [DB_USERNAME]@localhost;
FLUSH PRIVILEGES;
exit;

Install:

cd ~ 
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
sudo apt-get update
sudo apt-get install -y php-gd libssh2-php
cd ~/wordpress && sudo cp wp-config-sample.php wp-config.php && sudo chown root:root * -R && sudo nano wp-config.php
sudo a2enmod rewrite && sudo service apache2 restart

wp-config.php:

 // ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */
define('DB_NAME', '[DB_NAME]');

/** MySQL database username */
define('DB_USER', '[DB_USERNAME]');

/** MySQL database password */
define('DB_PASSWORD', '[DB_PASSWD]');

 

Now just move the Directory to wherever you want Apache to serve it from. I like to move it high up my file tree and symlink into Apache. But you could just

 mv * /var/www/html/