Raspberry Pi

Configuring LimeSurvey on Raspberry Pi

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

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

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

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

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/

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/

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 '<limeSurveyPassword>';

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

flush privileges;


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.

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

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

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.

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.

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

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

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.

Step 16: Login with your credentials.

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.


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

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.