When you look at the web hosting landscape, you’ll see majority of the sites hosted on Apache2 or Nginx HTTP servers.. However, few people know about OpenLiteSpeed or Lighttpd HTTP servers and the performance benefits they provide…
This brief tutorial shows students and new users how to install Drupal on Ubuntu 16.04 LTS with OpenLiteSpeed, MariaDB and PHP 7.1 support. If you haven’t heard of OpenLiteSpeed, is an open source web server developed by LiteSpeed Technology. It’s designed to be lightweight with a user friendly web interface to create and manage your websites.
You will learn how to install OpenLiteSpeed with MariaDB and PHP 7.1… and how to configure OpenLiteSpeed to allow Drupal to work. When you’re ready, continue with the steps below:
Step 1: Update the Ubuntu
It’s always good to update Ubuntu server prior to installing new packages… to update Ubuntu, run the commands below
Now that all dependencies are installed, go and fetch the latest version of OpenLiteSpeed. The commands below will download version 1.4.27 to your server..
cd /tmp/ && wget http://open.litespeedtech.com/packages/openlitespeed-1.4.27.tgz
Next, run the commands below to extract the downloaded package.
tar -xvzf openlitespeed-1.4.27.tgz
Change into the directory extracted directory
Then run the commands below to install OpenLiteSpeed.
sudo make install
After that OpenLiteSpeed should be installed and ready to use.
Step 4: Configure OpenLiteSpeed
Finally, configure the administrative password for the web interface. Run the commands below to do that.
Then create a web admin username and password.
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.
User name [admin]: openlite
Please specify the administrator's password.
This is the password required to login the administration Web interface.
Retype password: retype_password
Administrator's username/password is updated successfully!
After that, run the commands below to start the webserver.
sudo /etc/init.d/lsws start
Open your browser and browse to the server IP or hostname followed by 8088 to view the default page page.
To access the admin backend portal, use the port 7078
Now that OpenLiteSpeed is up, go and download Drupal content. To do that, run the commands below… you will download, extract and copy Drupal content to OpenLiteSpeed default document root.. The default Virtual Host Root is at /usr/local/lsws/Example
Next, visit Drupal site and download the latest package…. or run the commands below to download and extract Drupal content.
After downloading, run the commands below to extract the downloaded file and move it into a new Drupal root directory.
cd /tmp && cd /tmp && wget https://ftp.drupal.org/files/projects/drupal-8.4.2.tar.gz
tar -zxvf drupal*.gz
sudo mv drupal-8.4.2 /usr/local/lsws/Example/drupal
Then run the commands below to set the correct permissions for Drupal to function properly.