• Solution. Support. Expertise
  • +43 664 635 1238
  • +1 647-947-4502
  • info@tdwebservices.com
Installing WordPress on Centos 6Installing WordPress on Centos 6Installing WordPress on Centos 6Installing WordPress on Centos 6
  • Hosting
    • Hosting
      • Business Hosting
      • Enterprise Hosting
      • TDWS VPS
      • Managed WordPress Hosting
      • Highly Optimized WordPress Hosting
      • Laravel Hosting
      • Odoo Hosting
      • Moodle Hosting
      • TDWS Reseller Plans
    • E-Commerce Solutions
      • Managed WooCommerce Hosting
      • Highly Optimized WooCommerce Hosting
      • Magento Hosting
      • PrestaShop Hosting
      • OpenCart Hosting
    • Dedicated Servers
      • Gaming Servers
    • TDWS Global Monitoring System
      • Server Monitoring
      • Network Monitoring
      • Application Monitoring
      • Database Monitoring
      • Cloud Monitoring
      • Container Monitoring
      • Storage Monitoring
  • Cloud
    • TDWS Cloud
      • TDWS Cloud Servers
      • TDWS CloudSites
      • TDWS Box Cloud
      • TDWS Virtual Private Cloud
      • TDWS Cloud Drive
    • TDWS Private Cloud
      • KVM Hypervisor Private Cloud
      • Xen Hypervisor Private Cloud
      • Microsoft Hyper-V Private Cloud
      • VMware ESXi Private Cloud
      • VMware Public Cloud Servers
    • Services
      • DB as a Service
      • Disaster Recovery as a Service
    • Other
      • TDWS Cloud Infrastructure
      • TDWS Hybrid Cloud
  • Insights
    • Small Business
    • Knowledge Base
    • Cloud Computing
    • Expert Opinion
    • Industry debates
    • Thought Leadership
  • About Us
    • Why Us
    • Data Centers
    • Affiliate
    • TDWS Channel Partners
    • Contact Us
    • TDWS Customer Reviews
    • TDWS Video
    • Legal
      • TD Web Services Acceptable Use Policy (“AUP”)
      • TDAG DMCA Notice Policy
      • TDAG Privacy Policy
      • Master Service Agreement
      • Service Level Agreement
Login
✕
Magento Two Level Caching Systems
1 February 2015
TD Web Services: A reliable global web hosting service provider
2 February 2015

Installing WordPress on Centos 6

Published by TDWS Technical Support on 2 February 2015
Categories
  • Knowledge Base
Tags
  • WordPress
  • WordPress Hosting

WordPress is an open source tool for website and blogging. This tool operates on php and MySQL and currently includes over 22,000 plug-ins. They enable you to customize it to your specific needs. The first step to installing WordPress is in ensuring that your server has LAMP. You must also have root privileges or necessary administrator rights, if you are to install WordPress as per the directions in this guide.

Step 1

Download WordPress from their website if you do not have it already. It will come as a zipped package that will directly store itself in your directory.

To download,

wget http://wordpress.org/latest.tar.gz

Once downloaded you will have to unzip it,

tar -xzvf latest.tar.gz

Once unzipped, these files will go to the WordPress directory, in the home directory.

Step 2

Creating a WordPress Database and User first by creating a new MySQL directory for WordPress. For this, you will need to log into the MySQL Shell

mysql –u root –p

Here you will have to log in with your MySQL user password in order to create a WordPress database and a user in that database. You will also need a new credentials i.e.  Password for the user you create. To create the database,

CREATE DATABASE wordpress;
Query OK, 1 row affected (0.00 sec)

You can replace ‘wordpress’ with whichever name you choose for your directory but remember to finish the command with a semicolon. To create a user in the newly created database,

CREATE USER wordpressuser@localhost;
Query OK, 0 rows affected (0.00 sec)

You can also replace the user name with whichever one that suits you but do not forget the semicolon here either. All MySQL commands have to end with a semi colon. Once you create the user, you have to set up a password and then grant the user all privileges. To create the password,

SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password");
Query OK, 0 rows affected (0.00 sec)

To give your user all privileges,

GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)

When through with this, refresh and then exit MySQL Shell

FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

And then,

exit

Step 3

Setting up the WordPress configuration
Copy the sample WordPress configuration file that is to be found in the WordPress directory into a new file to create a usable configuration by editing it.

cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php

Then open the new usable wordpress configuration

vi ~/wordpress/wp-config.php

Edit it carefully, substituting the correct entries for your database, username and password.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpressuser');
/** MySQL database password */
define('DB_PASSWORD', 'password');

Save the changes and exit.

Step 4

Transferring the unzipped WordPress files to the website’s root directory.

sudo cp -r ~/wordpress/* /var/www/html

At this point, WordPress should be operational unless you do not have a php-gd. To download it,

sudo yum install php-gd

You can then complete by restarting Apache,

sudo service httpd restart

Step 5: Accessing WordPress

Here, the installation is already complete and to access WordPress you only have to add /wp-admin/install.php to your site’s domain or IP address before filling out the short online form.

Share
0
TDWS Technical Support
TDWS Technical Support

Related posts

15 June 2021

Why Upgrade Your Site to PHP 7.x


Read more
27 May 2021

Common Causes Why is WordPress Slow


Read more
27 May 2019

WordPress Acceleration using NginX Reverse Proxy & Caching


Read more
12 March 2019

How to Switch Your Domain Name Without Damaging Your Site’s SEO


Read more
10 March 2019

How to Use the cPanel/WHM Transfer Accounts Tool


Read more
6 June 2018

How to Change WordPress password using phpMyAdmin or MySQL


Read more
13 April 2018

How to Transfer WordPress Site to a New Domain


Read more
1 February 2017

The ABCD of Cloud Computing


Read more

Leave a Reply Cancel reply

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

Our Services

  • Business Hosting
  • TDWS VPS
  • Dedicated Servers
  • E-Commerce Solutions
  • Enterprise Hosting
  • Managed WordPress Hosting
  • Highly Optimized WordPress Hosting
  • SSL Certificates

TDWS Cloud

  • TDWS Cloud Servers
  • TDWS CloudSites
  • VMware Public Cloud Servers
  • VMware ESXi Private Cloud
  • Microsoft Hyper-V Private Cloud
  • TDWS Virtual Private Cloud
  • Hybrid Cloud
  • Cloud Infrastructure

Recent Posts

  • The Power of Plus Addressing
  • Why an LMS is Essential for Selling Courses Online
  • CentOS Stream vs AlmaLinux: Which Distribution is Right for You?
  • De-Risk Your IT Strategy with TDWS High-Performance Cloud
  • Speeding Up Success: How Power Day Sale Improved Website Performance and Increased Conversions

About Us

  • About Us
  • Why Us
  • Affiliate
  • Contact Us
  • Data Centers
© 2021 TD Web Services. All Rights Reserved.