a problem with activation of the options FollowSymLinks and SymLinksIfOwnerMatch

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Created:

2016-11-16 13:12:23 UTC

Modified:

2016-12-21 20:11:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

a problem with activation of the options FollowSymLinks and SymLinksIfOwnerMatch

Symptoms

An attempt to open site fails with:

Forbidden
You do not have permission to access this document.

The following error appears in the error_log :

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/example.com/httpdocs/cgi-bin/index.pl

However the mod_rewrite module is activated and the /var/www/vhosts/example.com/httpdocs/.htaccess have FollowSymLinks and SymLinksIfOwnerMatch enabled.

Cause

The root cause of the issue is enabled Perl for the site.

When Perl is enabled the following strings appear in apache configuration file of the site:

<IfModule mod_perl.c>
<Files ~ (\\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>

As can be seen the only specified option is ExecCGI , it overwrites all the options specified in site .htaccess file.

Resolution

Disable Perl for the site.

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