Steps to Install WordPress on linux (Ubuntu)

Taimoor Sattar
Here is the list of steps that are involved in download wordpress on Linux (ubuntu)
  • Update the System
  • Install LAMP Server
  • Wordpress Database Initialization
  • Installing Wordpress
  • Open WordPress site in web browser

Update the System

su -
apt-get update

Install LAMP Server

apt-get install lamp-server^

Wordpress Database Initialization

mysql -u root -p
CREATE DATABASE wordpressdb;
CREATE USER [email protected] IDENTIFIED BY 'wordpresspassword';
GRANT ALL PRIVILEGES ON wordpressdb.* TO [email protected];
FLUSH PRIVILEGES;
exit

Installing Wordpress

cd /tmp
wget http://wordpress.org/latest.zip
unzip -q latest.zip -d /var/www/html/
chown -R www-data:www-data /var/www/html/wordpress
chmod -R 755 /var/www/html/wordpress
mkdir -p /var/www/html/wordpress/wp-content/uploads
chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads

Open WordPress site in web browser

http://localhost/wordpress