How to Install WordPress in Linux

Step 1: Prerequisites

Step 2: Create WordPress Database

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 834
Server version: 5.6.24 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
| Database           |
| information_schema |
| mysql              |
| performance_schema |
3 rows in set (0.02 sec)

mysql> create database wordpress;
Query OK, 1 row affected (0.01 sec)

mysql> grant all privileges on wordpress.* to wordpress@'localhost' identified by 'password';
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit

Step 3: Install WordPress

To Install wordpress package use the yum command i.e.

# yum --enablerepo=epel -y install wordpress

Step 4: Configure WordPress

Edit the wp-config.php file to configure wordpress

# vi /etc/wordpress/wp-config.php

define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'password');
define('WPLANG', 'ja');
# vi /etc/httpd/conf.d/wordpress.conf
Allow from all
# mkdir /usr/share/wordpress/wp-content/languages
# wget -P /usr/share/wordpress/wp-content/languages \`rpm -q wordpress | cut -d"-" -f2`/messages/ \`rpm -q wordpress | cut -d"-" -f2`/messages/ \`rpm -q wordpress | cut -d"-" -f2`/messages/ \`rpm -q wordpress | cut -d"-" -f2`/messages/

Step 5: Restart apache Server

Restart apache server:

# service httpd restart
# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
0 0 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
腎臓内科 医師の募集・求人・転職・就職情報

It’s actually a cool and useful piece of information. I am glad that you simply
shared this useful info with us. Please keep us informed like this.

Thanks for sharing.
1 year ago

Great weblog here! Also your website so much up fast!
What web host are you the usage of? Can I am getting your associate link on your host?
I wish my web site loaded up as quickly as yours lol

vay tiền nhanh
1 year ago

I seriously love your site.. Great colors & theme. Did you create this amazing site yourself?
Please reply back as I’m wanting to create my own personal site
and would like to find out where you got this from or just what the theme is named.

Appreciate it!