How To Set Up Dokuwiki

From OpenLiteSpeed Wiki

Install PHP 7 Modules

You can skip this step if you have installed PHP already.
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

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.

  • Name: lsphp5 should be lsphp71
  • Command: $SERVER_ROOT/fcgi-bin/lsphp5 should be $SERVER_ROOT/lsphp71/bin/lsphp

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


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

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

Visit http://your_server_IP/dokuwiki/install.php and setup your account and password. Once you complete the installer, you can safely remove the 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