Tips to Install WordPress on Linux – 6 Steps Guide

What is WordPress

WordPress is a free open source blogging content management system (CMS). It requires PHP and MySQL for its working. It has inbuilt template management known as themes and additional functionality can be provided by Plugins. Latest Version is 3.9 Code named Smith. Download latest version of WordPress from  – http://wordpress.org/latest.tar.gz

Requirement for installation

Download latest version from link provided above. Copy to this Tar file to home directory. Extract contents in home directory tar -xzvf latest.tar.gz All contents will be inside directory WordPress

Configure MySQL – Create WordPress Database and User

WordPress Database Configuration

WordPress Database Configuration

Go to terminal mode and log into  MySql Database mysql -u root -p Now Create Database for your Site, I am creating a Database with name myblog CREATE DATABASE myblog; You can use any name for your Database in place of myblog. Now create a user for your Database, I am creating user blogger. You can use any name. CREATE USER blogger@localhost; Set the password for your new user SET PASSWORD FOR blogger@localhost= PASSWORD(“blogger123”); Finally set privileges for this user on your Database GRANT ALL PRIVILEGES ON myblog.* TO blogger@localhost IDENTIFIED BY ‘blogger123’; Where myblog is your blog Database, blogger is user name and blogger123 is password. Finally reload your Privileges FLUSH PRIVILEGES; And exit MySql EXIT

SetUp and Configure WordPress

Setup file wp-config.php. Copy wp-config-sample.php and create wp-config.php.

Copy Config File

Copy Config File

Open wp-config.php with Linux text editor vi vi wp-config.php Provide Name of Database, Database username and database password. Marked with Red box.   and Save and close your file.

WordPress Database Configuration

Database Configuration

Copy All files in extraxted WordPress directory to Home directory of Web Server in case of Apache on Linux it is /var/www/html/ , if you have not chosen something else Run installation script http://yourwebsite/wp-admin/install.php Provide your site title, desired user name, your choice of a password (twice) and your e-mail address. Finally select option if you would like your blog to appear in search engines like Google and Technorati. Click on Install WordPress.

WordPress Installation

Installation

Once Installation completes below screen will

WordPress Installation Finish

WordPress Installation Finish

Finally Login to website by entering your username and password. WordPress Login Login to Blog You can also login from http://yourwebsite/wp-admin