Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu: Install LimeSurvey webapp #LimeSurvey


LimeSurvey is the leading open source survey application.



Create the application directory

sudo mkdir /var/www/<limesurvey>/

Open the LimeSurvey application directory

cd /var/www/<limesurvey>/

Download latest LimeSurvey package and untar it. You can get the link to the latest release here:

sudo wget
sudo tar -xzvf limesurvey205plus-build150310.tar.gz

Copy the extracted files to the current folder and delete the other files

sudo cp -r ./limesurvey/* ./
sudo rm -r limesurvey
sudo rm limesurvey205plus-build150310.tar.gz

Let's create the MySQL LimeSurvey database and user.

mysql -u root -p

Enter the MySQL root user password.

Create the LimeSurvey database.

CREATE DATABASE <limesurvey>;

Create the LimeSurvey database user.

CREATE USER <limesurvey>@localhost;

Set the password for the LimeSurvey database user.

SET PASSWORD FOR <limesurvey>@localhost = PASSWORD("<password>");

Grant LimeSurvey user full access on LimeSurvey database.

GRANT ALL PRIVILEGES ON <limesurvey>.* TO <limesurvey>@localhost IDENTIFIED BY '<password>';

Refresh MySQL and exit.


Grant permissions for the www-data group and user.

sudo chown www-data:www-data /var/www/<limesurvey> -R 

Test config and reload Nginx service.

sudo nginx -t && sudo service nginx reload

Open the browser again on //<host> and install the LimeSurvey application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.