• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install WordPress with OpenLiteSpeed on CentOS 7

{{postValue.id}}

To Install WordPress with OpenLiteSpeed on CentOS 7

WordPress is currently the most popular content management system (CMS) in the world. It allows you to easily set up flexible blogs and websites on top of a database backend, using PHP to execute scripts and process dynamic content. WordPress has a large online community for support and is a great way to get websites up and running quickly.

To install the Openlitespeed web server in CentOS 7 visit,
https://www.linuxhelp.com/how-to-install-the-openlitespeed-web-server-on-centos-7/


To create Database

Create a Database and Database User for WordPress

[root@linuxhelp1 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with   or g.
Your MariaDB connection id is 11
Server version: 5.5.47-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.
MariaDB [(none)]> 
Now create a database in the name of wordpress
MariaDB [(none)]>  create database wordpress 
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>  grant all on wordpress.* to user1@localhost identified by ' linuxc'  
Query OK, 0 rows affected (0.05 sec)
MariaDB [(none)]>  flush privileges 
Query OK, 0 rows affected (0.02 sec)
MariaDB [(none)]>  exit
Bye

To Configure Virtual Host

Configure the Virtual Host for WordPress

Open the browser and navigate to https:/< IP_Address> :7080
Select " Virtual Hosts" from the menu bar.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Configure-Virtual-Hosts

Select the " Example" virtual host, and click the general tab.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Example-virtual-host

Click the " Edit" to change the configuration.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-configuration

Allow index.php

To start and enable index.php files and then Click " Save" .
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-enable-index.php-files

To set up the rewrite instructions click on " Rewrite" tab for the virtual host.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Rewrite-for-virtual-host

Select " Yes" in " Enable Rewrite" option and click save.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Enable-Rewrite

Click on the " Edit" button to rewrite rules.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-rewrite
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-rewrite-rules

Remove Unused Password Protection

Click on the " Security" tab, and then trigger the " Delete" button.

Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Security
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Delete
Click on the " Context" tab. In the " Context List" , delete the /protected/ context that was associated with the security realm you just deleted:
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Context
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-delete/protected/context
Restart the Server to apply the Changes
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Restart-Server
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-restart-OpenLiteSpeed

Clean up our virtual host and document root directories as shown below.

[root@linuxhelp1 ~]# cd /usr/local/lsws/Example/

Now delete the cgi-bin and fsci-bin by using the following command.

[root@linuxhelp1 Example]# rm -rf cgi-bin fcgi-bin

Clear the contents of our document root directory.

[root@linuxhelp1 Example]# rm -rf html/*


Install and Configure WordPress

Download and install WordPress by running the following command.

[root@linuxhelp1 ~]# wget https://wordpress.org/latest.tar.gz
--2016-07-11 12:12:25--  https://wordpress.org/latest.tar.gz
Resolving wordpress.org (wordpress.org)... 66.155.40.250, 66.155.40.249
Connecting to wordpress.org (wordpress.org)|66.155.40.250|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7773389 (7.4M) [application/octet-stream]
Saving to: ‘ latest.tar.gz’ 

100%[========================================================================> ] 77,73,389    459KB/s   in 15s    

2016-07-11 12:12:41 (519 KB/s) - ‘ latest.tar.gz’  saved [7773389/7773389]

Extract the downloaded word press directory.

[root@linuxhelp1 ~]# tar xzvf latest.tar.gz
wordpress/
wordpress/wp-settings.php
wordpress/wp-cron.php
wordpress/wp-comments-post.php
.
.
.
wordpress/wp-includes/update.php
wordpress/wp-includes/comment.php
wordpress/wp-config-sample.php
[root@linuxhelp1 ~]# cd wordpress/

Rename the WordPress configuration file.

[root@linuxhelp1 wordpress]# cp wp-config-sample.php wp-config.php

Open the configuration file.

[root@linuxhelp1 wordpress]# vim wp-config.php

Then add the following database credentials.

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

/** MySQL database password */
define(' DB_PASSWORD' , ' linuxc' ) 

Copy the files into the root directory.

[root@linuxhelp1 wordpress]# cp -r ~/wordpress/* /usr/local/lsws/Example/html/

Set permission for the entire directory.

[root@linuxhelp1 wordpress]# chown -R nobody:nobody /usr/local/lsws/Example/html/

Now open the browser and navigate to https://< IP_ address> : 8088
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-open-browser
Choose your desired language.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-language
Fill the following details and click Install WordPress.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Install-WordPress

Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Installed
Now you can Login into the WordPress.
Install-WordPress-content-management-system-CMS-OpenLiteSpeed-CentOS7-Login

Tags:
william
Author: 

Comments ( 1 )

sunil951
All is ok but what needs to be done if we are looking to manager website from FTP user ?


sudo usermod -a -G nobody webrun_ftp
sudo chown -R webrun_ftp:webrun_ftp /home/abcd.com/html/
sudo chmod -R 0755 /home/abcd.com/html/

Getting permission issue. What will be issue??
Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

How do I transfer the website to this panel?

A

By uploading the files via Filemanager and restore your database from PHPMyAdmin.

Q

How do I install a WordPress plugin?

A

From your WordPress dashboard go to Plugins > Add New. From here you can use the search to locate a free plugin from WordPress.org to install or you can click the “Upload Plugin” button.

Q

How do I change my password in WordPress?

A

Simply go to Users > Your Username via the dashboard).

Q

Where do I select a category and add tags to my post?

A

To choose a category and add tags to your post, use the meta boxes to the right of your content when creating a post.

Q

How do I create a new page in WordPress?

A

To create new page use the dashboard menu to navigate to Pages > Add New. From here you can give your page a name, add content, media, insert shortcodes.

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.