How to install Lime survey 2.67.3 on CentOS 7

To install LimeSurvey on CentOS 7

Lime survey is an open source online survey application. It has been widely used by many big industries to create the survey tasks. It has many powerful features like creating dynamic fields for survey. Supports multilingual, defines user roles, user groups and the more it has been integrated into various CMS. In this tutorial, you will learn the method to install LimeSurvey on CentOS 7.

Requirements
LAMP setup
-Apache
-Mariadb (create database , user protected by password)
-Php 7 and above

Installing LimeSurvey

You need to download the package link from the official website. Copy it to your terminal and download it with the wget command.

[root@linuxhelp1]# wget http://download.limesurvey.org/latest-stable-release/limesurvey2.67.3+170728.zip
--2017-08-01 14:44:29--  http://download.limesurvey.org/latest-stable-release/limesurvey2.67.3+170728.zip
Resolving download.limesurvey.org (download.limesurvey.org)... 78.47.141.76
Connecting to download.limesurvey.org (download.limesurvey.org)|78.47.141.76|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 78763542 (75M) [application/zip]
Saving to: ‘ limesurvey2.67.3+170728.zip.1’ 

100% [================================================]>             


Once done, extract the package as follows.

[root@linuxhelp1 ~]#  unzip  limesurvey2.67.3+170728.zip.1
inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.da.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.de.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.el.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.en-short.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.en.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.es-short.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.es.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.et.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.fa.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.fi.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.fr-short.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.fr.js  
  inflating: limesurvey/application/extensions/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.gl.js  
.
.
.
creating: limesurvey/upload/templates/
  inflating: limesurvey/upload/templates/index.html  
  inflating: limesurvey/upload/templates/readme.txt  

After extracting, change the owner permission and read-write permissions.

[root@linuxhelp1 ~]#chown -R apache:apache /var/www/html/limesurvey/tmp /var/www/html/limesurvey/upload /var/www/html/limesurvey/application/config 
[root@linuxhelp1 ~]# chown -R 776 /var/www/html/limesurvey/tmp /var/www/html/limesurvey/upload /var/www/html/limesurvey/application/config 

Now it is essential to configure Apache VirtualHost. Open the .conf file by running the following command.

[root@linuxhelp1 html]# vim /etc/httpd/conf.d/ls.conf

Configure it as follows.

< VirtualHost *:80> 

DocumentRoot " /var/www/html/limesurvey/" 
ServerName 192.168.7.218
ServerAlias www.linuxhelp1.com
ErrorLog " /var/log/httpd/www.linuxhelp1.com-error_log" 
CustomLog " /var/log/httpd/www.linuxhelp1.com-access_log"  combined
 
< Directory " /var/www/html/limesurvey/" > 
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Once configured, restart your Apache service.

[root@linuxhelp1 ~] #  systemctl restart httpd

Now switch to browser and enter machine ‘ s IP. Here its http://192.168.7.218. The welcome page appears on your screen. Click on Start Installation.

The License page appears on your screen. Click I Accept.

Click Next on the next page

Now, you need to configure the database. Make the necessary configuration. Click Next once done with the page.

Now, it will ask for Populate database. Click on the button.

Optional Settings page appears now. Create all your login credentials.

Click on Next once done.

The installation is successful.

Login with your credentials now.


With this the complete installation of LimeSurvey is over. Enjoy working with LimeSurvey.

FAQ
Q
How can I restore data from a deactivated survey?
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 stop the system from sending confirmation emails
A
If you are using tokens and a participant fills out the survey, a confirmation email is sent to his/her email address. If you don't want this message to be sent just delete the whole confirmation email subject and message.
Q
How do I create a survey which is open to everyone?
A
To make a survey public to everyone you should:

not create a token table (if there is one, drop it)
at survey settings set "Only users with tokens may enter the survey" = no (old setting)
at survey settings set "Allow public registration" = no
Q
How can I embed a flash file?
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
How can I remove index.php from the URL path to get a shorter URL
A
If you want to use fancy URLs and so not have /index.php in every URL please edit /application/config/config.php and change

'showScriptName' => true,