Install LimeSurvey CE on Alibaba Cloud

Prerequisites

Setting up Your Environment

Setting up Your Server

# sudo apt update && sudo apt upgrade

Installing PHP

# sudo apt-get install software-properties-common python-software-properties
# sudo add-apt-repository ppa:ondrej/php
# sudo apt update
# sudo apt install -y php7.2

Installing Required PHP Extensions

# sudo apt-get -y install php7.2-xml php7.2-mbstring php7.2-common php7.2-mysql php7.2-fpm php7.2-cli php7.2-gd php7.2-zip php7.2-imap php7.2-ldap
# php --version

Installing MariaDB

# sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
# sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.nodesdirect.com/mariadb/repo/10.2/ubuntu xenial main'
# sudo apt update
# sudo apt install -y mariadb-server
# sudo systemctl start mariadb
# sudo systemctl enable mariadb
# sudo mysql_secure_installation
# sudo mysql -u root -p
CREATE DATABASE lime CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'aareez'@'localhost' IDENTIFIED BY '654321Ab';
GRANT ALL PRIVILEGES ON lime.* TO 'aareez'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Installing Unzip

# sudo apt-get install unzip -y

Installing and Setting up LimeSurvey CE

# cd /var/www/html
# sudo chown -R aareez:aareez /var/www/html
# sudo rm index.html
# wget https://download.limesurvey.org/latest-stable-release/limesurvey3.15.0+181008.zip
# unzip limesurvey3.15.0+181008.zip
# rm limesurvey3.15.0+181008.zip
# sudo chown -R www-data:www-data /var/www/html

Configuring the Apache Server

# sudo nano /etc/apache2/sites-available/lime.conf
<VirtualHost *:80> 
ServerAdmin admin@xyz.com
ServerName softpedia.xyz
DocumentRoot /var/www/html/limesurvey/
DirectoryIndex index.php index.htm index.html
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/LimeSurvey_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/LimeSurvey_access.log combined
</VirtualHost>
# sudo a2dissite 000-default.conf
# sudo a2ensite lime
# sudo a2enmod rewrite
# sudo a2enmod ssl
# sudo service apache2 restart

Installing the SSL Certificate

# sudo apt-get update
# sudo apt-get install software-properties-common
# sudo add-apt-repository ppa:certbot/certbot
# sudo apt-get update
# sudo systemctl stop apache2
# sudo apt-get install python-certbot-apache
# sudo certbot --apache -d softpedia.xyz
# sudo systemctl start apache2

Setting up Firewalls and Ports

Original Source

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store