Skip to content

Commit 779c978

Browse files
author
Jonathan Starck
committed
limesurvey: enable Apache mod_rewrite
The vhost sets AllowOverride All and LimeSurvey ships a root .htaccess with the rewrite rules its front controller depends on, but mod_rewrite is not enabled on a fresh Debian install and setup_php does not enable it either. Since the .htaccess wraps its rules in <IfModule mod_rewrite.c>, the block is silently skipped and requests to /rest/v1/* never reach index.php, returning 404 and breaking the new LimeSurvey editor. Fixes #16764
1 parent 99d4f9d commit 779c978

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)