Site shows 500 Internal Server Error: AllowOverride not allowed here

Created:

2017-07-29 12:13:40 UTC

Modified:

2017-08-16 16:34:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Site shows 500 Internal Server Error: AllowOverride not allowed here

Applicable to:

  • Plesk for Linux
  • Plesk Onyx for Linux

Symptoms

1. The website shows the following error:

PLESK_INFO: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at example@test.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

2. The following error could be found at /var/www/vhosts/system/example.com/logs/error_log

# tail -n1 /var/www/vhosts/system/example.com/logs/error_log
[Sat Jul 29 10:00:11.723846 2017] [core:alert] [pid 941:tid 139765566273280] [client 192.168.34.228:45206] /var/www/vhosts/example.com/httpdocs/.htaccess: AllowOverride not allowed here

Cause

AllowOverride directive is in the .htaccess file. It cannot be defined in the .htaccess files.

Resolution

1. Log into the server using SSH

2. Open the .htaccess file mentioned in the error and remove the directive AllowOverride.

Refer to the Apache documentation for details regarding AllowOverride directive.

Have more questions? Submit a request
Please sign in to leave a comment.