It's better when it's simple

User Tools

Site Tools


DokuWiki with OpenLiteSpeed + PHP 7 on CentOS 7

Step 1: Install OpenLiteSpeed

Add the CentOS7 Repository then install:

rpm -ivh
yum install openlitespeed -y

Step 2: Install PHP7

List all packages starting with lsphp using the command below:

yum list lsphp*

Install some of the most commonly used PHP 7.1 packages and modules for OpenLiteSpeed as follows:

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 -y

Step 3: Setup admin credentials and firewall


Provide info as below:

  • User name [admin]: <your-admin-username>
  • Password: <your-admin-password>
  • Retype password: <your-admin-password>

To allow ports 7080 and 80 to gain web access to the Web-admin and default pages:

firewall-cmd --zone=public --permanent --add-port=7080/tcp
firewall-cmd --zone=public --permanent --add-port=80/tcp
firewall-cmd --reload

Visit http://your_server_IP:7080, ignore the SSL security warning, and then use the admin credentials you set earlier to sign in.

Navigate to Configuration > Listeners > View and change OpenLiteSpeed's default port 8088 to HTTP default port 80. Click the Save icon to save your changes.

Step 4: Setup PHP7.1

Navigate to Server Configuration > External app > Edit to edit this application. Modify:

  1. Name: lsphp5 should be lsphp71
  2. Command: $SERVER_ROOT/fcgi-bin/lsphp5 should be $SERVER_ROOT/lsphp71/bin/lsphp

Click the Save icon to save your changes, then click the Graceful Restart button.


Go to http://your_server_IP/phpinfo.php and make sure the PHP Version shows 7.1.x

Step 5: Setup DokuWiki

Install the latest stable version of DokuWiki:

wget -P /usr/local/lsws/Example/html
tar xvf /usr/local/lsws/Example/html/dokuwiki-stable.tgz
chown -R nobody /usr/local/lsws/Example/html/dokuwiki

Go to http://your_server_IP/dokuwiki/install.php and setup your account and password. Once you complete the installer, you can safely remove install.php.

rm -f /usr/local/lsws/Example/html/dokuwiki/install.php

Now you can start DokuWiki on http://your_server_IP/dokuwiki/doku.php


  • You may want to change dokuwiki-Y-M-D to dokuwiki
  • You can set up your domain on it, which will be easier to remember then server_IP
  • You can set up a rewrite rule from Web-Admin > Virtual Hosts > Rewrite (i.e. shorten the URL path)
install/openlitespeed.txt · Last modified: 2017-05-25 17:37 by

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki