How to install Wordpress in a Linux system

WordPress is one of the popular Content Management System (CMS). It is an open source website creation tool build by PHP. Most the websites are running through this application. It is also available in FTP server or we can configure it and run from our own servers.

In this article we going to see how to install and run Wordpress in our local system.

For installing wordpress the server should be a LAMP configured server since wordpress is a PHP based application,

For LAMP installation,

For Centos,

Click here for RPM based machines.

For Ubuntu,

Click here for Debian based machines.

Installing wordpress,

    Download the wordpress opensource package from their official site Wordpress.Org. You can either download the zip file or tar.gz file.



Unzip the file



Move the unzipped file to the document root of your apache server.



Add a Virtual host to run a website using the wordpress, We gonna run my.com through wordpress,



To know about more on setting up a virtual host Click here

Permissions for the web user,

Change the ownership for the wordpress directory since it requires permissions to folders while you are uploading files, images,etc..,. to your site.



Creating a database and providing grants:



Create a database for your site,



Grant privileges to the wordpress user for the database,



mysite will be your database name, for "admin" enter the username and for "localhost" leave it if you want to install wordpress on your local system or mention the server IP if installing in anyother server.

Flush the privileges,



Add a host entry to the server IP to my.com and access the same on your browser, you will be redirected to the setup page. Click Let's go! to begin the installation.

 Database Name - Enter the database name of your site.
  
 Username - The one you provided on the mysql grants.

 Password -  The one you provided on the mysql grants. 

 Database Host - Enter the IP of the server or 127.0.0.1 if its in local system.

 Table Prefix - You can leave it as default.

Click Submit which will prompt another window for installation,

 After Clicking the Run the install, it will redirect to another prompt for the Site details,


Click Install Wordpress, Final one will be the success prompt which will allow you to login to your Wordpress Dashboard,


Finally you will be redirected to your Wordpress dashboard for your site.


You have successfully installed wordpress on your system,

Please let me know if you have any questions.


Comments

Popular Posts on this blog

Apache Webserver - Installation from source (tar.gz and tar.bz2)

Setting up a Mail server using Roundcube - Part-1 - Centos 7

How to Install LAMP Stack on Linux - Centos 7

Apache Tomcat Installation - Ubuntu - 17.04

Installing Docker-Compose on Ubuntu

Setting up a Mail server using Roundcube - Part-3 - Centos 7

Blog Top Sites

Blog Log