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
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.
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.
# php56u php56u-common php56u-xml php56u-gd php56u-mbstring php56u-mysqlnd php56u-mcrypt php56u-imap php56u-ldap
create database ;
create user ;
create user @localhost;
set password f