Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:installation:xenforo_installation [2017/09/05 20:48]
Eric Leu [Install PHP modules]
litespeed_wiki:installation:xenforo_installation [2017/09/06 13:02] (current)
Lisa Clarke
Line 5: Line 5:
 ===== Install PHP modules ===== ===== Install PHP modules =====
 The easiest way to install PHP for LiteSpeed is through our CentOS repository. If the LiteSpeed Repository was not installed and enabled during the web server installation,​ follow [[http://​www.litespeedtech.com/​support/​wiki/​doku.php?​id=litespeed_wiki:​php:​rpm | this guide]] to install and enable the LiteSpeed Repository. The easiest way to install PHP for LiteSpeed is through our CentOS repository. If the LiteSpeed Repository was not installed and enabled during the web server installation,​ follow [[http://​www.litespeedtech.com/​support/​wiki/​doku.php?​id=litespeed_wiki:​php:​rpm | this guide]] to install and enable the LiteSpeed Repository.
- +===Step 1.Install PHP=== 
-You can install some of the most commonly-used PHP 7.1 packages and modules for OpenLiteSpeed. Use the following command:+You can install some of the most commonly-used PHP 7.1 packages and modules for LiteSpeed. Use the following command:
  
 <​code>​sudo 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 </​code>​ <​code>​sudo 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 </​code>​
- +===Step 2.Setup PHP=== 
-Visit **<​nowiki>​http://​your_server_IP:​7080</​nowiki>​**. Navigate to ''​Server Configuration > External app''​, then click the second icon ''​Edit'' ​on the right hand side in order to edit this application.\\+Visit ''​<​nowiki>​http://​your_server_IP:​7080</​nowiki>​''​. Navigate to **Server Configuration > External app**, then click the second icon **Edit** on the right hand side in order to edit this application.\\
 Modify: Modify:
   * **Name**: lsphp -> ''​lsphp71''​   * **Name**: lsphp -> ''​lsphp71''​
   * **Command**:​ $SERVER_ROOT/​fcgi-bin/​lsphp5 -> ''​$SERVER_ROOT/​lsphp71/​bin/​lsphp''​   * **Command**:​ $SERVER_ROOT/​fcgi-bin/​lsphp5 -> ''​$SERVER_ROOT/​lsphp71/​bin/​lsphp''​
 +===Step 3.Restart LSWS===
 When you are finished, click the **Save** icon to save your changes, then click the **Graceful Restart** button. When you are finished, click the **Save** icon to save your changes, then click the **Graceful Restart** button.
 +===Step 4. PHP Verification===
 +Visit ''<​nowiki>​http://​your_server_IP/​phpinfo.php</​nowiki>''​ and make sure **PHP Version** shows ''​7.1.x''​.
  
-=====PHP Verification:​===== 
-Visit **<​nowiki>​http://​your_server_IP/​phpinfo.php</​nowiki>​** and make sure the PHP Version shows 7.1.x. 
  
 =====Mariadb Installation:​===== =====Mariadb Installation:​=====
 Install MariaDB: Install MariaDB:
- sudo yum install mariadb-server +<​code>​sudo yum install mariadb-server 
- sudo systemctl start mariadb+sudo systemctl start mariadb</​code>​
 Set new password: ​ Set new password: ​
- /​usr/​bin/​mysql_secure_installation + <​code>​/​usr/​bin/​mysql_secure_installation</​code>​ 
- ​$yourpassword+Enter ''​$yourpassword''​
 =====Create XenForo DB Account ===== =====Create XenForo DB Account =====
 Create the XenForo database and your XenForo user/​password:​ Create the XenForo database and your XenForo user/​password:​
 <​code>​ mysql -u root -p$yourmysqlpassword <​code>​ mysql -u root -p$yourmysqlpassword
  ​create database xenforo; grant all privileges on xenforo.* to xenforo@localhost identified by '​xenforo';​ exit;</​code> ​  ​create database xenforo; grant all privileges on xenforo.* to xenforo@localhost identified by '​xenforo';​ exit;</​code> ​
-Note: For security purposes, you should use a xenforo ​username and password that are different than our example.+Note: For security purposes, you should use a XenForo ​username and password that are different than our example.
  
 =====XenForo Download:​===== =====XenForo Download:​=====
 To illustrate setting up XenForo on a vhost we'll use the default virtual host, "​Example"​. To illustrate setting up XenForo on a vhost we'll use the default virtual host, "​Example"​.
-Download XenForo.zip from the XenForo [[https://​xenforo.com/​customers/​ | Customer Area]] to your server in ''​usr/​local/​lsws/​Example/​http/''​.  +Download ​''​XenForo.zip'' ​from the XenForo [[https://​xenforo.com/​customers/​ | Customer Area]] to your server in ''​usr/​local/​lsws/​Example/​http/''​.  
-You will see an **upload** file+You will see an ''​upload'' ​file
 <​code>​ unzip xenforo_xxx_.zip <​code>​ unzip xenforo_xxx_.zip
  sudo mv upload xenforo  sudo mv upload xenforo
Line 42: Line 43:
 =====XenForo Installation:​===== =====XenForo Installation:​=====
 Setup index.php: Setup index.php:
-Go to the ''​WebAdmin Console > Virtual Hosts > Example > General'' ​tab. Click the <​code>​edit</​code> ​button on the ''​Index Files'' ​section and add the following:+Go to the **WebAdmin Console > Virtual Hosts > Example > General** tab. Click the **edit** button on the **Index Files** section and add the following:
 <​code>/​index.php</​code>​ <​code>/​index.php</​code>​
  
-Open browser with URL <​code>​server_IP:​8088/​xenforo/​</​code>​ +Open browser with URL ''​server_IP:​8088/​xenforo/​''​ 
-  * Click '''​Begin Installation''' ​button ​+  * Click **Begin Installation** button ​
     * MySQL User Name: ''​xenforo''​     * MySQL User Name: ''​xenforo''​
     * MySQL Password: ''​xenforo''​     * MySQL Password: ''​xenforo''​
     * MySQL Database Name: ''​xenforo''​     * MySQL Database Name: ''​xenforo''​
-  *Click ​''​Test & Generate Configuration'' ​button +  *Click ​**Test & Generate Configuration** button 
-  *Click ​''​Continue with Installation'' ​button +  *Click ​**Continue with Installation** button 
-  *Click ​''​Begin Installation'' ​button ​+  *Click ​**Begin Installation** button ​
   *Setup Administrator   *Setup Administrator
     * Name: ''​XXX''​     * Name: ''​XXX''​
     * Password: ''​XXX''​     * Password: ''​XXX''​
     * Email: ''​XXX@XXX''​     * Email: ''​XXX@XXX''​
-  *Click ​''​Create Administrator'' ​button +  *Click ​**Create Administrator** button 
-  *Click ​''​Setup Options'' ​button +  *Click ​**Setup Options** button 
-  *Click ​''​Enter your control panel'' ​button ​+  *Click ​**Enter your control panel** button ​
   *Login with your Name/​Password   *Login with your Name/​Password
  
  • Admin
  • Last modified: 2017/09/05 20:48
  • by Eric Leu