How To Install Wordpress on Ubuntu 14.04
Installing Wordpress

Prerequisites
- non-root
user with sudo privileges
- LAMP
(Linux, Apache, MySQL, and PHP) stack installed on your VPS instance
Step One — Create a MySQL Database and User for WordPress
mysql -u root -p
CREATE DATABASE wordpress;
Here new account is wordpressuser
and its password is password
.
CREATE USER wordpressuser@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost;
FLUSH PRIVILEGES;
exit
regular command prompt appears.
Step Two —
Download WordPress
cd ~
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
sudo apt-get update
sudo apt-get install php5-gd libssh2-php
Step Three — Configure WordPress
cd ~/wordpress
cp wp-config-sample.php wp-config.php
curl -s https://api.wordpress.org/secret-key/1.1/salt/
You will get back unique values that look something like this:
Warning! It is important that you
request unique values each time. Do NOT copy the values shown below!
Output
define('AUTH_KEY', '1jl/vqfs
DO NOT COPY THESE VALUESc_j{iwqD^<+c9.k
define('SECURE_AUTH_KEY', 'E2N-h2]Dcvp+aS/p7X
DO NOT COPY THESE VALUES{Ka(f;rv?Pxf})CgLi-3');
define('LOGGED_IN_KEY', 'W(50,{W^,OPB%PB
DO NOT COPY THESE VALUES2;y&,2m%3]R6DUth[;88');
define('NONCE_KEY', 'll,4UC)7ua+8