DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

install:openlitespeed

This is an old revision of the document!


DokuWiki with OpenLiteSpeed + PHP 7 on CentOS 7

Step1: Install OpenLiteSpeed

Add the CentOS7 Repository then install:

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
yum install openlitespeed -y

Step2: Install PHP7

You can list all packages starting with lsphp using the command below:

yum list lsphp*

Then you can 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

Step3: Setup admin credentials and firewall

/usr/local/lsws/admin/misc/admpass.sh

Provide info as below:

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

To allow ports 7080 and 8088 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=8088/tcp
firewall-cmd --reload

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

Step4: Setup PHP7.1

Click the Server Configuration category and then the External app tab, Click the second icon Edit on the right hand side in order to edit this application. Modify:

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

After the modification, click the Save icon to save your changes, then click the graceful restart button.

Verification:

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

Step5: Setup DokuWiki

INSTALL the latest stable version of DOKUWIKI:

wget -P /tmp https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
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:8088/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:8088/dokuwiki/doku.php

Tips

  • You may want to change dokuwiki-Y-M-D to dokuwiki
  • You may want to change 8088 to any port you like (i.e. HTTP default port 80)
  • You can set up your domain on it, which will easier to remember then server_IP
  • You can set up a rewrite rule from Web-Admin>Virtual Hosts>Rewrite(i.e. shorter the URL path)
install/openlitespeed.1495714346.txt.gz · Last modified: 2017-05-25 14:12 by 47.22.54.182