Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Last active November 13, 2015 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/169c177fe3927247f579 to your computer and use it in GitHub Desktop.
Save janikvonrotz/169c177fe3927247f579 to your computer and use it in GitHub Desktop.
Ubuntu: Install LimeSurvey webapp #LimeSurvey

Introduction

LimeSurvey is the leading open source survey application.

Requirements

Installation

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: https://www.limesurvey.org/en/stable-release.

sudo wget http://download.limesurvey.org/Latest_stable_release/limesurvey205plus-build150310.tar.gz
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.

FLUSH PRIVILEGES;
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