Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Websites that are using rewrite module for Apache are inaccessible with the HTTP Error 500.
- The error like the following could be found in Apache logs in Domains > example.com > Logs or in
/var/www/vhosts/system/example.com/logs/error_log
:CONFIG_TEXT: [core:alert] [client 203.0.113.2:40913] /var/www/vhosts/example.com/httpdocs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
- Module
rewrite_module
for Apache is not enabled on the server:# httpd -M | grep -i rewrite
#
Cause
Rewrite module for Apache is disabled.
Resolution
Enable
rewrite_module
module:
- Log into Plesk.
- Go to Tools & Settings > Apache Web Server > Apache modules .
- Check rewrite and click Ok.
Comments
0 comments
Please sign in to leave a comment.