Skip to content

Commit 89f5d30

Browse files
[Fix]: LimeSurvey - enable Apache mod_rewrite (#16767)
1 parent 0a6e59d commit 89f5d30

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

ct/limesurvey.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit
3030
fi
31+
if [[ ! -L /etc/apache2/mods-enabled/rewrite.load ]]; then
32+
msg_info "Enabling Apache mod_rewrite"
33+
$STD a2enmod rewrite
34+
systemctl restart apache2
35+
msg_ok "Enabled Apache mod_rewrite"
36+
fi
37+
3138
setup_mariadb
3239

3340
msg_warn "Application is updated via Web Interface"

install/limesurvey-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ cat <<EOF >/etc/apache2/sites-enabled/000-default.conf
6060
EOF
6161
chown -R www-data:www-data "/opt/limesurvey"
6262
chmod -R 750 "/opt/limesurvey"
63+
$STD a2enmod rewrite
6364
systemctl reload apache2
6465
rm -rf "$temp_file"
6566
msg_ok "Set up LimeSurvey"

0 commit comments

Comments
 (0)