How To Install Limesurvey On Centos 7.6

Installation Of Lime Survey On CentOS 7.6

Installation Process

Check the Centos version by using the following command


[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Going to create database By using the mysql command

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.64-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database limedb;
Query OK, 1 row affected (0.01 sec)

MariaDB [(none)]> create user 'limeuser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all privileges on limedb.* to 'limeuser'@localhost;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye

Download the limesurvey installation package by using wget command

 [root@linuxhelp ~]# wget https://github.com/LimeSurvey/LimeSurvey/archive/master.zip
--2019-11-23 06:10:28--  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-23 06:10:28--  https://codeload.github.com/LimeSurvey/LimeSurvey/zip/master
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

    [          <=>                                               ] 81,045,314  1.09MB/s   in 70s    

2019-11-23 06:11:39 (1.10 MB/s) - ‘master.zip’ saved [81045314]

Extract the downloaded package

[root@linuxhelp ~]# unzip master.zip
Archive:  master.zip
0cf514100f9b79b13023c67cb3827753e230be26
   creating: LimeSurvey-master/
 extracting: LimeSurvey-master/.bowerrc  
  inflating: LimeSurvey-master/.editorconfig  
  inflating: LimeSurvey-master/.gitattributes  
  inflating: LimeSurvey-master/.gitignore  
  inflating: LimeSurvey-master/.htaccess  
  inflating: LimeSurvey-master/.scrutinizer.yml  
.
.
xtension.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 apache:apache /var/www/limesurvey
 [root@linuxhelp ~]# chmod -R 755 /var/www/limesurvey

Configure the virtualhost for limesurvey

 [root@linuxhelp ~]# vim /etc/httpd/conf.d/limesurvey.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/limesurvey
<directory /var/www/limesurvey>
allowoverride all
allow from all
</directory>
</virtualhost>

Restart the apache service by using the following command

[root@linuxhelp ~]# systemctl restart httpd

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 centos 7.6

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;
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 PHP Surveyor 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.