When you want to run LimeSurvey platform with Nginx HTTP server, the steps below should be a great place to start…. Our previous post showed you how to set it up with Apache2… continue below to learn how to use Nginx instead…

LimeSurvey is an open source, lightweight, online survey platform based on PHP…. It uses the LAMP or LEMP stack to operate and allows anyone to create great online surveys for one’s audience…

Whether you are conducting simple questionnaires with few questions or advanced assessments with conditionals for any groups, LimeSurvey is the tool you want to use and can be self-hosted in your own environment…..

LimeSurvey lets you focus on building great surveys by leveraging its easy managment portal designs and technical quality without the bloats…

Whether you’re creating a personal or business survey online, LimeSurvey can help you create and manage your content on every device with its modern user and admin interface….

This brief tutorial is going to show students and new users how to install LimeSurvey on Ubuntu 16.04 and 18.04 LTS.

To test Nginx setup, open your browser and browse to the server hostname or IP address and you should see Nginx default test page as shown below.. When you see that, then Nginx is working as expected..

http://localhost

Step 2: Install MariaDB Database Server

MariaDB database server is a great place to start when looking at open source database servers to use with Magento… To install MariaDB run the commands below…

sudo apt-get install mariadb-server mariadb-client

After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots..

Step 3: Restart Nginx

After installing PHP and related modules, all you have to do is restart Nginx to reload PHP configurations…

To restart Nginx, run the commands below

sudo systemctl restart nginx.service

Step 4: Create LimeSurvey Database

Now that you’ve installed all the packages that are required for LimeSurvey to function, continue below to start configuring the servers. First run the commands below to create a blank Magento database.

To logon to MariaDB database server, run the commands below.

sudo mysql -u root -p

Then create a database called limedb

CREATE DATABASE limedb;

Create a database user called limeuser with new password

CREATE USER 'limeuser'@'localhost' IDENTIFIED BY 'new_password_here';

Then grant the user full access to the database.

GRANT ALL ON limedb.* TO 'limeuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;

Finally, save your changes and exit.

FLUSH PRIVILEGES;
EXIT;

Step 5: Download and Install LimeSurvey CMS

Run the commands below to download LimeSurvey latest content… then unzip the download file and move the content to Nginx default root directory…