Steps to Install WordPress on linux (Ubuntu)

Taimoor Sattar author Posted on
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

[formatc lang="markup"]su - apt-get update[/formatc]

Install LAMP Server

[formatc lang="markup"]apt-get install lamp-server^[/formatc]

Wordpress Database Initialization

[formatc lang="markup"]mysql -u root -p CREATE DATABASE wordpressdb; CREATE USER wordpressuser@localhost IDENTIFIED BY 'wordpresspassword'; GRANT ALL PRIVILEGES ON wordpressdb.* TO wordpressuser@localhost; FLUSH PRIVILEGES; exit[/formatc]

Installing Wordpress

[formatc lang="markup"]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[/formatc]

Open WordPress site in web browser

[formatc lang="markup"]http://localhost/wordpress[/formatc]