• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Wordpress using CentOS Web Panel

1727

How to install Wordpress using CentOS Web Panel

The Wordpress is a free and open source website and blogging tool that uses PHP and MysQL. The CentOS Web Panel is a hosting platform for CentOS operating systems. Before getting started make sure you have already installed CentOS Web Panel on your Server and then create User Account and Domain for hosting. Once you have done this follow the below steps to install Wordpress on CWP. This article explains the installation of Wordpress using CentOS web panel.

Domain Name Used: wordpress.linuxhelp.com

User Account name for the respective domain - Wordpress

Installation procedure

To start with the installation procedure, download the Wordpress package using wget command followed by the download link and execute it.

[root@cwp ~]# wget http://wordpress.org/latest.tar.gz
--2017-07-27 23:57:31--  http://wordpress.org/latest.tar.gz
Resolving wordpress.org (wordpress.org)... 66.155.40.249, 66.155.40.250
Connecting to wordpress.org (wordpress.org)|66.155.40.249|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.org/latest.tar.gz [following]
--2017-07-27 23:57:32--  https://wordpress.org/latest.tar.gz
Connecting to wordpress.org (wordpress.org)|66.155.40.249|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8169865 (7.8M) [application/octet-stream]
Saving to: ‘ latest.tar.gz’ 
100%[===================================================================================================================================================> ] 81,69,865    522KB/s   in 21s    
2017-07-27 23:57:54 (377 KB/s) - ‘ latest.tar.gz’  saved [8169865/8169865]

Now extract the package by running the tar command.

[root@cwp ~]# tar -xzf latest.tar.gz

Move all the content inside newly extracted " wordpress" directory to your domain' s document root under public_html directory of your user account for your domain you want to host.

[root@cwp wordpress]# mv * /home/wp/public_html/

Next change the ownership and file permissions for the public_html directory.

[root@cwp ~]# chown -R wp.wp /home/wp/
[root@cwp ~]# chmod -R 755 /home/wp/public_html/

Create a Database and login to MySQL database for wordpress application. Also create a user and set password for it. Grant all the privileges to the user by executing the set of commands.

[root@cwp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 473
Server version: 10.1.25-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

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

MariaDB [(none)]>  CREATE DATABASE wordpress 
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]>  CREATE USER wordpressuser@localhost 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  SET PASSWORD FOR wordpressuser@localhost= PASSWORD(" 123" ) 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ' 123'  
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  FLUSH PRIVILEGES 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  exit
Bye

Move the public_html directory and copy the file as shown below.

[root@cwp ~]# cd /home/wp/public_html/
[root@cwp public_html]# cp wp-config-sample.php wp-config.php

Now open the file wp-config.php using vim editor and mention your database details in the configuration file.

[root@cwp public_html]# vim wp-config.php

// ** 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' , ' 123' ) 

Restart the apache service by running the following command.

[root@cwp ~]# systemctl restart httpd

Open your required browser and use your server IP address or domain name created for wordpress and run it. The wordpress application is running successfully and choose your required language an continue.

language

Enter your site' s Title, Username and password and select Install Wordpress option.
site details

The installation procedure is complete. Click on the Log in option.
login

The log in page appears and now you can enter your credentials and log in to the Wordpress application.
credentials

Customize your website by performing the following changes.
website

Publish your website by clicking the save and publish option.
publish

Access your website using the given IP address or domain name.
website

The process to host a website using Wordpress through a CentOS web panel is complete.

Tags:
jacob
Author: 

Comments ( 1 )

bugra
i did everything you said. but when i enter the ip address of my server my guess usr/local/apache/htdocs appears. i do not know why or how. 2 days ago ive installed wordpress into the usr/local/apache/htdocs and i was using wordpress via my ip address. then i remove all of them and install like you said. to sum up, all i need is installing wordpress into my server and editing it before lunch time. (without domian, yes of course i have to use user name and domain). then im gonna point my domain to the server. is it possible ? please help me. all i need is that!!!
Add a comment

Frequently asked questions ( 5 )

Q

Does it migrate a WordPress site to Drupal?

A

Yes. There are modules like WordPress Migrate to help you.

Q

Do I get help for my WordPress.org site here?

A

These forums are focused on helping WordPress.com users. Folks with a WordPress.org site can get help in the WordPress.org Support Forums.

Q

If its possible to install Wordpress on CentOS?

A

Please refer the link as follow "https://www.linuxhelp.com/how-to-install-wordpress-cms-4-9-5-on-centos-7/"

Q

How do I Start a Topic?

A

There are several ways to start new topics. The easiest is to navigate to the forums homepage where there’s a link to “Add new topic“. Clicking that link will take you to a form to fill out t

Q

How Can I transfer my blog or website from other services to a self-hosted "WordPress" installation?

A

You can exchange any blog or site from any administration you wish. We have a rundown of aides which will assist you in transferring from your particular stage in "WordPress'

Related Tutorials in How to install Wordpress using CentOS Web Panel

Related Tutorials in How to install Wordpress using CentOS Web Panel

How to install Laravel on CentOS Web Panel
How to install Laravel on CentOS Web Panel
Nov 30, 2017
How to install Wordpress on opensuse15.1
How to install Wordpress on opensuse15.1
Nov 27, 2019
How to install Wordpress using CentOS Web Panel
How to install Wordpress using CentOS Web Panel
Aug 7, 2017
How to install Imagemagick in CentOS Web Panel
How to install Imagemagick in CentOS Web Panel
Feb 15, 2017
How to install Wordpress CMS V4.9.6 on Fedora-28
How to install Wordpress CMS V4.9.6 on Fedora-28
Jun 9, 2018
How to update Apache and suPHP Apache module in CentOS Web Panel.
How to update Apache and suPHP Apache module in CentOS Web Panel.
Feb 13, 2017
How to install WordPress in Ubuntu 22.04
How to install WordPress in Ubuntu 22.04
Jun 10, 2023
How to manage multiple servers using CentOS Web Panel
How to manage multiple servers using CentOS Web Panel
Mar 24, 2016

Related Forums in How to install Wordpress using CentOS Web Panel

Related Forums in How to install Wordpress using CentOS Web Panel

CentOS Web Panel
robert class=
DNS server is not working on Centos Web Panel
Dec 29, 2017
CentOS Web Panel
anettejoseph class=
Centos Web Panel : How to find mysql root password
Jan 30, 2018
Wordpress
owen class=
how to install wordpress with openlitespeed
Feb 27, 2017
Apache
daniel class=
Wordpress Installation : Internal server error
Jun 15, 2018
Wordpress
henry class=
Database is not connecting to Wordpress in linux
Feb 25, 2017

Related News in How to install Wordpress using CentOS Web Panel

Related News in How to install Wordpress using CentOS Web Panel

WordPress and Joomla websites infected by new backdoor malware
WordPress and Joomla websites infected by new backdoor malware
May 31, 2019
Nine Popular WordPress plugins affected with critical SQL injection vulnerabilities
Nine Popular WordPress plugins affected with critical SQL injection vulnerabilities
Sep 7, 2019
WordPress 5.1.1 fixes a threatening XSS vulnerability
WordPress 5.1.1 fixes a threatening XSS vulnerability
Mar 22, 2019
Fake plugin infects 4,000 WordPress sites.
Fake plugin infects 4,000 WordPress sites.
Apr 5, 2017
WordPress releases version 4.7.5 fixing six security and three general issues
WordPress releases version 4.7.5 fixing six security and three general issues
May 18, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.