LimeSurvey (Serveur Web de sondage)

Environnement

Installation

Installer les pré-requis :

apt install apache2 mariadb-server php7.3 php7.3-curl php7.3-gd php7.3-imap php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-xml php7.3-zip wget unzip apt-transport-https curl

Sécuriser MySQL :

mysql_secure_installation

Créer la base de données :

mysql -u root -p
CREATE DATABASE limesurvey;
GRANT ALL ON limesurvey.* TO 'limesurvey_admin' IDENTIFIED BY 'ucptucptucpt';
FLUSH PRIVILEGES;
EXIT;

Télécharger et décompresser LimeSurvey :

cd /var/www/
wget https://download.limesurvey.org/latest-stable-release/limesurvey4.2.3+200511.zip
unzip limesurvey4.2.3+200511.zip
rm limesurvey4.2.3+200511.zip
chown -R www-data:www-data /var/www/limesurvey

Créer le virtualhost :

mv /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bak
nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>  
    ServerName limesurvey.domaine.lan
    ServerAdmin admin@domaine.lan
    DocumentRoot /var/www/limesurvey/

    <Directory /var/www/limesurvey/>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog  /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined
</VirtualHost> 

Redémarrer Apache :

systemctl restart apache2

Sources