Online surveys have become popular nowadays to collect data and let people know about the opinions of other people on different topics to help them improve various areas. Many platforms allow users to take a survey or questionnaire but the LimeSurvey is the ideal pick. It is an online tool that helps businesses conduct different surveys and questionnaires needed to carry out different experimental designs or studies.

The LimeSurvey releases an open-source version to let people use this tool in a self-hosted environment, making it quite easy for Raspberry Pi users to use the LimeSurvey services.

Configuring LimeSurvey on Raspberry Pi

This tutorial will explain how you can configure LimeSurvey on a Raspberry Pi device and start creating your online surveys.

To start using LimeSurvey on Raspberry Pi, you should need to execute different commands. Here are the following steps which will be required from your side to configure LimeSurvey on Raspberry Pi.

Step 1: First and important step, you will need to check whether the packages on Raspberry Pi are updated using the following commands.

$ sudo apt update

$ sudo apt upgrade

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-665.png" data-lazy- height="516" src="data:image/svg xml,” width=”681″>

Step 2: Next, you will require the installation of following packages on your Raspberry Pi device:

  • Apache web server
  • PHP
  • MySQL

To know about how these packages can be installed, you will need to visit our published article that discusses how to install these utilities.

When you successfully install the above packages on your device, it will become easy for you to perform the remaining steps.

Step 3: Also, there are some additional packages that will be required by the PHP module and to install these packages, use the following command.

$ sudo apt install php7.3-mbstring php7.3-gd php7.3-imap php7.3-ldap php7.3-zip php7.3-xml -y

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-669.png" data-lazy- height="510" src="data:image/svg xml,” width=”678″>

Step 4: Once the installation is complete, you will need to restart the Apache service to activate all modules. To do this, run the following command.

$ sudo systemctl restart apache2.service

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-673.png" data-lazy- height="164" src="data:image/svg xml,” width=”680″>

Step 5: Now, download the latest version of LimeSurvey on your Raspberry Pi device using:

$ wget https://download.limesurvey.org/latest-stable-release/limesurvey5.3.7 220328.zip

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-677.png" data-lazy- height="511" src="data:image/svg xml,” width=”717″>

Step 6: The zip file can be easily unzipped using the following command and extract the contents in the “/var/www/html/” directory.

$ sudo unzip limesurvey5.3.7 220328.zip -d /var/www/html/

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-680.png" data-lazy- height="514" src="data:image/svg xml,” width=”722″>

Step 7: The files are copied as a root user and to give them the ownership to the default Apache user, the following command will be needed:

$ sudo chown www-data:www-data -R /var/www/html/limesurvey/

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-683.png" data-lazy- height="153" src="data:image/svg xml,” width=”720″>

Step 8: Once the above installation is completed, you will now need to create a LimeSurvey database by executing the following commands one by one in the terminal.

sudo mysql -uroot -p

create database limeSurveyDB;

create user <limeSurveyUser>@localhost identified by ;

grant all privileges on limeSurveyDB.* to <limeSurveyUser>@localhost;

flush privileges;

quit

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-684.png" data-lazy- height="515" src="data:image/svg xml,” width=”718″>

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-685.png" data-lazy- height="369" src="data:image/svg xml,” width=”787″>

Change username and password accordingly.

Step 9: Once the above steps are completed, you can then head to your browser of Raspberry Pi and type the address “http://hostIPAddress/limesurvey/admin” and it will open the LimeSurvey on the browser.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-686.png" data-lazy- height="589" src="data:image/svg xml,” width=”1107″>

Step 10: Now, to begin the installtion, choose the “Start installation“ option .

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-687.png" data-lazy- height="589" src="data:image/svg xml,” width=”1107″>

Step 11: Click on the “I accept” option to accept the terms and condition of LimeSurvey.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-688.png" data-lazy- height="594" src="data:image/svg xml,” width=”1087″>

Step 12: The next LimeSurvey installer screen is a pre-installation check, so move towards the next step by scrolling down and click the “Next” option.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-689.png" data-lazy- height="606" src="data:image/svg xml,” width=”1123″>

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-690.png" data-lazy- height="619" src="data:image/svg xml,” width=”1113″>

Step 13: In the “Database configuration”, provide your database username, password and name which you set in the configuration step. Leave the remaining as default.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-691.png" data-lazy- height="614" src="data:image/svg xml,” width=”1111″>

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-692.png" data-lazy- height="621" src="data:image/svg xml,” width=”1109″>

Once the configuration is done, click on the “Next” option.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-693.png" data-lazy- height="618" src="data:image/svg xml,” width=”1099″>

Step 14: The next window will confirm your database is created and you can then simply click on the “Populate database“ option.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-694.png" data-lazy- height="593" src="data:image/svg xml,” width=”1095″>

When you perform the above step, it will successfully install the LimeSurvey and you will head to the administration settings. Set your credential or leave them as it is because you can set them later as well.

Step 15: Once they are completed, click on the “Administration” option.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-695.png" data-lazy- height="599" src="data:image/svg xml,” width=”1097″>

Step 16: Login with your credentials.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-696.png" data-lazy- height="595" src="data:image/svg xml,” width=”597″>

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-697.png" data-lazy- height="605" src="data:image/svg xml,” width=”1116″>

That’s it, now you can start creating surveys by choosing the “Create Survey” option and you can share it with your friends and other people to know about their opinion.

Conclusion

Online surveys are getting popular nowadays as many organizations are adopting them to find out people’s opinion on various topics. You can install the open-source LimeSurvey self-hosted environment on Raspberry Pi using the above steps that will properly guide you in configuring it. After the installation, you can then create your own survey and share it with others to know about their opinion.

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/unnamesadadsasdd-150×150.jpg6258ebf1ea768.jpg" height="112" src="data:image/svg xml,” width=”112″>

Awais Khan

I’m an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.