Home » Headline » 28 March 2018 » 286 supporters » No Comment »

Install OpenLiteSpeed and WordPress in single command line

28 March 2018 286 supporters No Comment

In this guide, I will show how to install OpenLiteSpeed under Centos 7. Basically the step is similar if you use Centos, Ubuntu or Debian.

More info can be obtain via URL here : http://open.litespeedtech.com/mediawiki/index.php/Help:1-Click_Install

OpenLiteSpeed is a high-performance, lightweight, open source HTTP server developed and copyrighted by LiteSpeed Technologies. Users are free to download, use, distribute, and modify OpenLiteSpeed and its source code in accordance with the precepts of the GPLv3 license.

The command I use to install are below;


[root@web ~]# bash ols1clk.sh -r SampleFpbkFkb -a SampleFpbkFkb --lsphp 70 -w --wordpresspath /usr/local/lsws/themes --dbname themes --dbuser themes --dbpassword SampleFpbkFkb
**********************************************************************************************
* Open LiteSpeed One click installation, Version 1.7 *
* Copyright (C) 2016 - 2017 LiteSpeed Technologies, Inc. *
**********************************************************************************************
Current platform is centos 7.

Starting to install openlitespeed to /usr/local/lsws/ with the parameters below,
WebAdmin password: SampleFpbkFkb
WebAdmin email: root@localhost
lsphp version: 70
mariadb version: 10.2
Install wordpress: Yes
WordPress listenport: 80
Web site domain: *
Mysql root Password: SampleFpbkFkb
Database name: themes
Database username: themes
Database password: SampleFpbkFkb
Wordpress plus: No
WordPress location: /usr/local/lsws/themes (New install)

Are these settings correct? Type n to quit, otherwise will continue.[Y/n]

Install OpenLitespeed stage 1

Install OpenLitespeed stage 1

Openlitespeed setup stage 2

Openlitespeed setup stage 2

Wordpress installer

WordPress installer

I setup the DNS A record of the subdomain to point to my server at http://themes.inertz.org. It then will show WordPress installer.

The next step is to install PHPMYAdmin. The easiest way to install PHP for OpenLiteSpeed is through our CentOS repository.

The required modules and packages can be install using below command;

yum install lsphp71 lsphp71-mysqlnd lsphp71-common lsphp71-gd lsphp71-pdo lsphp71-process lsphp71-mbstring lsphp71-mcrypt lsphp71-opcache lsphp71-bcmath lsphp71-xml lsphp71-soap lsphp71-json -y 

Then setup PHP for the external App.

Visit http://your_server_IP:7080. Navigate to Server Configuration > External app, then click the second icon Edit on the right hand side in order to edit this application.

Modify:

Name: lsphp → lsphp71
Command: $SERVER_ROOT/fcgi-bin/lsphp5 → $SERVER_ROOT/lsphp71/bin/lsphp

Download and Extract PHPMYAdmin

cd /usr/local/lsws/themes
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.zip

unzip phpMyAdmin-4.7.4-all-languages.zip
mv phpMyAdmin-4.7.4-all-languages phpmyadmin

This installs PHPMYAdmin on OpenLiteSpeed, you can visit PHPMYAdmin at : http://server_IP/phpmyadmin/index.php

After all installation complete and able to login the wordpress, you can proceed to install LiteSpeed Cache plugins from : https://wordpress.org/plugins/litespeed-cache/

LiteSpeed cache settings

LiteSpeed cache settings

*I have disable Apache webserver that listen to port 80




Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.