How to install Limesurvey on Linuxmint 19

How to install Limesurvey on Linuxmint 19

Process

Check the linuxmint version by using the following command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Going to create database By using the mysql command

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.21-1ubuntu1 (Ubuntu)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database limedb;
Query OK, 1 row affected (0.00 sec)

mysql> create user 'limeuser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.08 sec)

mysql> grant all privileges on limedb.* to 'limeuser'@localhost;
Query OK, 0 rows affected (0.05 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql> exit
Bye

Download the limesurvey installation package by using wget command

root@linuxhelp:~# wget https://github.com/LimeSurvey/LimeSurvey/archive/master.zip
--2019-11-03 03:02:39--  https://github.com/LimeSurvey/LimeSurvey/archive/master.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/LimeSurvey/LimeSurvey/zip/master [following]
--2019-11-03 03:02:39--  https://codeload.github.com/LimeSurvey/LimeSurvey/zip/master
Resolving codeload.github.com (codeload.github.com)... 13.127.152.42
Connecting to codeload.github.com (codeload.github.com)|13.127.152.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

master.zip                      [                    <=>                  ]  77.27M  1.12MB/s    in 70s     

2019-11-03 03:03:51 (1.10 MB/s) - ‘master.zip’ saved [81026401]

Extract the downloaded package

root@linuxhelp:~# unzip master.zip 
Archive:  master.zip
1fa5dd4794bab115bd04172258b42e06f123f1dd
   creating: LimeSurvey-master/
 extracting: LimeSurvey-master/.bowerrc  
  inflating: LimeSurvey-master/.editorconfig  
.
.
.
   creating: LimeSurvey-master/upload/twig/
   creating: LimeSurvey-master/upload/twig/extensions/
   creating: LimeSurvey-master/upload/twig/extensions/HelloWorld_Twig_Extension/
  inflating: LimeSurvey-master/upload/twig/extensions/HelloWorld_Twig_Extension/HelloWorld_Twig_Extension.php  
  inflating: LimeSurvey-master/upload/twig/extensions/HelloWorld_Twig_Extension/HelloWorld_Twig_Extension.xml  
  inflating: LimeSurvey-master/upload/twig/extensions/HelloWorld_Twig_Extension/README.md  
  inflating: LimeSurvey-master/upload/twig/extensions/README.md  

Move the limesurvey directory to apache root directory

root@linuxhelp:~# mv LimeSurvey-master /var/www/limesurvey

Set the ownership and permission for limesurvey

root@linuxhelp:~# chown -R www-data.www-data /var/www/limesurvey

root@linuxhelp:~# chmod -R 755 /var/www/limesurvey

Configure the virtualhost for limesurvey

root@linuxhelp:~# vim /etc/apache2/sites-available/lime.conf
<VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/ limesurvey
<Directory /var/www/ limesurvey/>
AllowOverride All
allow from all
</Directory>
</VirtualHost>

Disable the default site access

root@linuxhelp:~# a2dissite 000-default.conf 
Site 000-default disabled.

To activate the new configuration, you need to run:

systemctl reload apache2

Enable the site access

root@linuxhelp:~# a2ensite lime.conf 

Enabling site lime. To activate the new configuration, you need to run:

systemctl reload apache2

Enable the rewite module root@linuxhelp:~# a2enmod rewrite Enabling module rewrite. To activate the new configuration, you need to run:

systemctl restart apache2

Restart the apache service by using the following command

root@linuxhelp:~# systemctl restart apache2

Open browser and enter your domain name This is welcome page of limesurvey Accept the licenses agreement Check the requirements for limesurvey Configure your database details Installation is completed successfully Enter the admin credentials This is the dashboard of limesurvey This is the method to install limesurvey On Linuxmint 19

FAQ
Q
How can I create a database and a user in MySQL with command-line access on limesurvey?
A
You have to enter the commands below in your MySQL for creating database for Limesurvey:

create database ;
create user ;
create user @localhost;
set password f
Q
How can I restore data from a deactivated Limesurvey?
A
Then, and only then the following steps will work:
Activate your survey again
Go to the "Browse responses for this survey" menu.
Click at the "Import answers from a deactivated survey table" button.
Choose your source table.
Q
How can I embed a flash file in Limesurvey?
A
Navigate to the place in your survey where you want insert your Flash file.
Open the full-screen editor mode by clicking the 'LimeFitWin' button on the editor tool-bar.
On the full-screen editor tool-bar you will find a little button with a Flash symbol. Click on it. A dialog will open.
Q
What are the required PHP extensions for LimeSurvey?
A
The required PHP extensions for Limesurvey is as follows
# php56u php56u-common php56u-xml php56u-gd php56u-mbstring php56u-mysqlnd php56u-mcrypt php56u-imap php56u-ldap
Q
What is LimeSurvey?
A
LimeSurvey also was known as PHPSurveyor is a free and open source online survey application written in PHP and based on Mysql, SQLite, and PostgreSQL. LimeSurvey allows you to develop and publish online surveys, collect responses, create statistics, and export the resulting data to other applications using web interface.