From 89f5d3000e7acfbfd03e100571d21fbfb0723623 Mon Sep 17 00:00:00 2001 From: Jonathan Starck Date: Wed, 26 Aug 2026 21:27:12 +0200 Subject: [PATCH] [Fix]: LimeSurvey - enable Apache mod_rewrite (#16767) --- ct/limesurvey.sh | 7 +++++++ install/limesurvey-install.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/ct/limesurvey.sh b/ct/limesurvey.sh index 7f8537fe7..a3a91f1c0 100644 --- a/ct/limesurvey.sh +++ b/ct/limesurvey.sh @@ -28,6 +28,13 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + if [[ ! -L /etc/apache2/mods-enabled/rewrite.load ]]; then + msg_info "Enabling Apache mod_rewrite" + $STD a2enmod rewrite + systemctl restart apache2 + msg_ok "Enabled Apache mod_rewrite" + fi + setup_mariadb msg_warn "Application is updated via Web Interface" diff --git a/install/limesurvey-install.sh b/install/limesurvey-install.sh index 31dc998e4..f5672d700 100644 --- a/install/limesurvey-install.sh +++ b/install/limesurvey-install.sh @@ -60,6 +60,7 @@ cat </etc/apache2/sites-enabled/000-default.conf EOF chown -R www-data:www-data "/opt/limesurvey" chmod -R 750 "/opt/limesurvey" +$STD a2enmod rewrite systemctl reload apache2 rm -rf "$temp_file" msg_ok "Set up LimeSurvey"