LimeSurvey is a free and open-source online statistical survey web app written in PHP based on a MySQL, SQLite, PostgreSQL or MSSQL database, distributed under the GNU General Public License

Step1. Install packages

yum install httpd mariadb mariadb-server

Step2. Start services

systemctl start httpd
systemctl enable httpd
systemctl status httpd

systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb

Step3. Enable HTTP port on the firewall

firewall-cmd --zone=public --permanent --add-service=httpĂ‚ 
firewall-cmd --reload

Step4. Setup database

mysql_secure_installation

Step5. Create a database and user

mysql -u root -p
show databases;
Create database limedb;
CREATE USER 'limeuser'@'%' IDENTIFIED BY 'redhat@123';
GRANT ALL PRIVILEGES ON limedb.* TO 'limeuser'@'%';
select Host,User,Password from user;
FLUSH PRIVILEGES;
quit
Bye

Step6. Install/configure PHP repository

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72

Step7. Install PHP packages

yum install php-mysql php-gd php-ldap php-xml php-xmlrpc php-mbstring php-mcrypt curl zlib libtool-ltdl php-pdo

Step8. Download the LimeSurvey software

yum install wget unzip
wget https://www.limesurvey.org/stable-release?download=2690:limesurvey3193%20191023.zip

Step9. Unzip the file and move in HTML folder

unzip stable-release\?download=2690\:limesurvey3193\ 191023.zip
mv limesurvey /var/www/html

Step10. Set permission

chown -R apache.apache /var/www/html/limesurvey
Chmod -R 777 /var/www/html/limesurvey

Step11. Create a virtual host file

vi /etc/httpd/conf.d/limesurvey

<VirtualHost *:80>
     ServerAdmin localhost
     DocumentRoot "/var/www/html/limesurvey/"
     ServerName 192.168.33.51
     ErrorLog "/var/log/httpd/limesurvey-error_log"
     CustomLog "/var/log/httpd/limesurvey-access_log" combined

     <Directory "/var/www/html/limesurvey/">
         DirectoryIndex index.html index.php install.php
         Options FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>

Step12. Start the service

systemctl start httpd

Step13. Open the web browser

http://<server ip>/limesurvey

LEAVE A REPLY

Please enter your comment!
Please enter your name here