DokuWiki

It's better when it's simple

User Tools

Site Tools


install:openlitespeed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install:openlitespeed [2017-05-25 14:04] – [Step4: Setup PHP7.1] 47.22.54.182install:openlitespeed [2017-05-25 17:37] (current) 47.22.54.182
Line 1: Line 1:
 ======DokuWiki with OpenLiteSpeed + PHP 7 on CentOS 7====== ======DokuWiki with OpenLiteSpeed + PHP 7 on CentOS 7======
  
-=====Step1: Install OpenLiteSpeed=====+=====Step 1: Install OpenLiteSpeed=====
 Add the CentOS7 Repository then install: Add the CentOS7 Repository then install:
 <code>rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm <code>rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
 yum install openlitespeed -y</code> yum install openlitespeed -y</code>
  
-=====Step2: Install PHP7===== +=====Step 2: Install PHP7===== 
-You can list all packages starting with lsphp using the command below:+List all packages starting with lsphp using the command below:
 <code>yum list lsphp*</code> <code>yum list lsphp*</code>
-Then you can install some of the most commonly used PHP 7.1 packages and modules for OpenLiteSpeed as follows:+Install some of the most commonly used PHP 7.1 packages and modules for OpenLiteSpeed as follows:
 <code>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</code> <code>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</code>
  
-=====Step3: Setup admin credentials and firewall=====+=====Step 3: Setup admin credentials and firewall=====
 <code>/usr/local/lsws/admin/misc/admpass.sh</code> <code>/usr/local/lsws/admin/misc/admpass.sh</code>
 Provide info as below: Provide info as below:
-  * User name [admin]: <your-admin-username> +  * **User name [admin]**''<your-admin-username>'' 
-  * Password: <your-admin-password> +  * **Password**''<your-admin-password>'' 
-  * Retype 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:+To allow ports 7080 and 80 to gain web access to the Web-admin and default pages:
 <code>firewall-cmd --zone=public --permanent --add-port=7080/tcp <code>firewall-cmd --zone=public --permanent --add-port=7080/tcp
-firewall-cmd --zone=public --permanent --add-port=8088/tcp+firewall-cmd --zone=public --permanent --add-port=80/tcp
 firewall-cmd --reload</code> firewall-cmd --reload</code>
-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.+Visit ''<nowiki>http://your_server_IP:7080</nowiki>'', ignore the SSL security warning, and then use the admin credentials you set earlier to sign in.
  
-=====Step4: Setup PHP7.1===== +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. 
-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.+ 
 +=====Step 4: Setup PHP7.1===== 
 +Navigate to **Server Configuration External app Edit** to edit this application.
 Modify: Modify:
-  - Name: lsphp5 -> **lsphp71** +  - **Name**: ''lsphp5'' should be ''lsphp71'' 
-  - Command: $SERVER_ROOT/fcgi-bin/lsphp5 -> **$SERVER_ROOT/lsphp71/bin/lsphp** +  - **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.+Click the **Save** icon to save your changes, then click the **Graceful Restart** button.
  
-===Verification way:=== +===Verification:=== 
-Point your web browser to ''http://your_server_IP:8088/phpinfo.php'', then make sure PHP Version shows 7.1.x+Go to ''<nowiki>http://your_server_IP/phpinfo.php</nowiki>'' and make sure the PHP Version shows ''7.1.x''
  
-=====Step5: Setup DokuWiki===== +=====Step 5: Setup DokuWiki===== 
-INSTALL lates stable version of DOKUWIKI+Install the latest stable version of DokuWiki
-<code>wget -P /tmp https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz+<code>wget -P /usr/local/lsws/Example/html https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
 tar xvf /usr/local/lsws/Example/html/dokuwiki-stable.tgz tar xvf /usr/local/lsws/Example/html/dokuwiki-stable.tgz
 chown -R nobody /usr/local/lsws/Example/html/dokuwiki</code> chown -R nobody /usr/local/lsws/Example/html/dokuwiki</code>
  
-Point your web browser to ''http://your_server_IP:8088/dokuwiki/install.php'' setup account and password. +Go to ''<nowiki>http://your_server_IP/dokuwiki/install.php</nowiki>'' and setup your account and password. 
-Once you complete the installer, you can safely remove the install.php.+Once you complete the installer, you can safely remove ''install.php''.
 <code>rm -f /usr/local/lsws/Example/html/dokuwiki/install.php</code> <code>rm -f /usr/local/lsws/Example/html/dokuwiki/install.php</code>
-Now you can start DokuWiki on http://your_server_IP:8088/dokuwiki/doku.php+Now you can start DokuWiki on ''<nowiki>http://your_server_IP/dokuwiki/doku.php</nowiki>''
  
 ===Tips=== ===Tips===
   * You may want to change ''dokuwiki-Y-M-D'' to ''dokuwiki''   * You may want to change ''dokuwiki-Y-M-D'' to ''dokuwiki''
-  * You may want to change 8088 to any port as you want (i.e. HTTP default port 80) +  * You can set up your domain on it, which will be easier to remember then server_IP 
-  * You can setup your domain on it, which will more easier remember then server_IP +  * You can set up a rewrite rule from **Web-Admin > Virtual Hosts > Rewrite** (i.e. shorten the URL path) 
-  * You can setup rewrite rule from ''Web-Admin>Virtual Hosts>Rewrite''(i.e. shorter the URL path)  +
- +
- +
- +
- +
- +
- +
- +
  
install/openlitespeed.1495713885.txt.gz · Last modified: 2017-05-25 14:04 by 47.22.54.182

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