• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

500error - fresh install - RewriteEngine

D

dstanley

Guest
/var/www/vhosts/domain.com/httpdocs/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

This .htaccess worked on the 7.5.3 server it migrated from, perhaps mod_rewrite is not enabled, how do i find out?
 
First try running these commands at the SSH prompt and post the results:

apachectl -t

locate mod_rewrite.so

(Not sure what OS you're on, but should work at least on RH OSs)
 
am running on suse 9.1

/usr/lib/apache2/mod_rewrite.so
/usr/lib/apache2-prefork/mod_rewrite.so
/usr/lib/apache2-worker/mod_rewrite.so

t109:/ # /usr/sbin/apache2ctl -t
Syntax OK
 
Check your httpd.conf file to make sure it has a LoadModule statement similar to the following:

LoadModule rewrite_module mod_rewrite.so

(I say 'similar' since I am not familiar with Suse)
 
in the httpd.conf it referenced /etc/apache2/sysconfig.d/loadmodule.conf

so edited that to include

LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so (this was in the same file on the 7.5.3 server)

But when i exit and save and do rcapache2 restart

i check and the line has dissappeared from the file again.
 
figured out how to enable mod rewrite for apache

edit: /etc/sysconfig/apache2

and add rewrite into the line of modules.
 
Back
Top