How To Install Wordpress on Ubuntu 14.04

Installing Wordpress
Riddhi Jindal
Riddhi Jindal

Created: 05/20/2020 7:16 AM - Updated: 05/20/2020 2:08 PM

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/vqfsDO NOT COPY THESE VALUES c_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%PBDO NOT COPY THESE VALUES 2;y&,2m%3]R6DUth[;88');
define('NONCE_KEY',        'll,4UC)7ua+8

Was this article helpful?

0 Out of 0 Marked As Helpfull

Have more questions? Please Contact Us