How to Install WordPress Blog on CentOS 5.5

WordPress is an open source blog tool and publishing platform powered by PHP and MySQL. It can be install on Windows server or Linux server. It is the famous Content Management System (CMS) and it has many features including the plug-in that can make your blog look modern and powerful.Below are the simple steps to install the wordpress blog on CentOS server. This tutorial assume that you already installed LAMP ( Linux, Apache, Mysql and PHP) server.

1.Go t your web server root directory.

    [root@server ~]# cd /var/www
    

2. Download the latest wordpress using wget command:

    [root@server www]# wget http://wordpress.org/latest.tar.gz
    

3.  Extract the compressed archives with below command:

    [root@server www]# tar xzvf latest.tar.gz
    

4. The extracted file name will be wordpress. Rename it to anything you want. Normally we put it blog since your url will be like this:
http://servername/blog

    root@server www]# cp wordpress blog
    

5. Create the Database and database user:

    mysql> CREATE DATABASE blogdb;
    Query OK, 1 row affected (0.00 sec)
    
    mysql> CREATE USER 'bloguser'@'localhost' IDENTIFIED BY 'blogpassword';
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> GRANT ALL PRIVILEGES ON blogdb.* to bloguser@localhost;
    Query OK, 0 rows affected (0.00 sec)
    

6. Navigate the browser to http://servername/blog

See also  How to Setup Central Log Server using Rsyslog on CentOS 6.2/CentOS 6.3

There doesn’t seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.

Click “Create a Configuration File”

7. You will be redirect to WordPress > Setup Configuration File:

Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

  • Database name = any_db (User define as  step 5)
  • Database username = any_user (User define as step 5)
  • Database password = any_password (User define as step 5)
  • Database host = localhost (if apache and mysql on the same server)
  • Table prefix (if you want to run more than one WordPress in a single database)
See also  How to Check and Verify Integrity MD5 Checksum on Windows 7

Click Let’s Go! to proceed

8. Fill in below form and Click Submit

  • Database name = blogdb
  • Database username = bloguser
  • Database password = blogpassword
  • Database host = localhost
  • Table prefix = wp_

You will be redirect to this page. Please leave the page and proceed below steps.

Sorry, but I can’t write the wp-config.php file.
You can create the wp-config.php manually and paste the following text into it.

9. Go to your web server terminal or ssh to web server. Copy and rename wp-config-sample.php to wp-config.php:

    [root@server ~]# cp /var/www/blog/wp-config-sample.php /var/www/blog/wp-config.php
    

10. Modify the wp-config.php:

    root@server ~]# vi /var/www/blog/wp-config.php
    

Change below line to above:

    /** The name of the database for WordPress = Line 19 */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username = Line 22 */
    define('DB_USER', 'username_here');
    
    /** MySQL database password = Line 25 */
    define('DB_PASSWORD', 'password_here');
    
    /** MySQL hostname = Line 28 */
    define('DB_HOST', 'localhost');
    

Save the wp-config.php file and exit from web server

See also  How to Unblock and Reclassify a Website That Trend Micro Blocked ?

11. Continue to this URL:
http://servername/blog/wp-admin/setup-config.php?step=2

Click “Run the install”

12. Please complete the form Click “Install WordPress”

  • Site Title : Blog Title
  • Username : Prefered username
  • Password, twice : Your password
  • Your E-mail : Your Email

13. To login Navigate the browser to http://servername/blog/wp-login.php

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7

This short howto will explain the steps to reset a lost root password or to reset a forgotten root password on Linux RHEL 7 or CentOS 7. Basically, we will...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

Leave a Reply

Your email address will not be published. Required fields are marked *