This guide will explain how to get up and running with Xenforo on LiteSpeed Web Server.
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 this guide to install and enable the LiteSpeed Repository.
You can install some of the most commonly-used PHP 7.1 packages and modules for LiteSpeed. Use the following command:
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
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.
Modify:
lsphp71
$SERVER_ROOT/lsphp71/bin/lsphp
When you are finished, click the Save icon to save your changes, then click the Graceful Restart button.
Visit http://your_server_IP/phpinfo.php
and make sure PHP Version shows 7.1.x
.
Install MariaDB:
sudo yum install mariadb-server sudo systemctl start mariadb
Set new password:
/usr/bin/mysql_secure_installation
Enter $yourpassword
Create the XenForo database and your XenForo user/password:
mysql -u root -p$yourmysqlpassword create database xenforo; grant all privileges on xenforo.* to xenforo@localhost identified by 'xenforo'; exit;
Note: For security purposes, you should use a XenForo username and password that are different than our example.
To illustrate setting up XenForo on a vhost we'll use the default virtual host, “Example”.
Download XenForo.zip
from the XenForo Customer Area to your server in usr/local/lsws/Example/http/
.
You will see an upload
file
unzip xenforo_xxx_.zip sudo mv upload xenforo sudo chmod 777 -R xenforo
Setup index.php: Go to the WebAdmin Console > Virtual Hosts > Example > General tab. Click the edit button on the Index Files section and add the following:
/index.php
Open browser with URL server_IP:8088/xenforo/
xenforo
xenforo
xenforo
XXX
XXX
XXX@XXX