• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule

T

TDuncklee

Guest
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

I've searched for hours and found many with this problem but none of the other solutions have helped.

I migrated a site from 8.6 to 11 and now I get the apache test page:
http://parentingspecialneeds.org/
however...
http://parentingspecialneeds.org/index.php works.

Here's the .htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
rewritecond %{http_host} ^www\.parentingspecialneeds\.org [nc]
rewriterule ^(.*)$ http://parentingspecialneeds.org/$1 [r=301,nc]
RewriteRule ^article/(.*)$ index.php?page=article&article=$1 [NC,L]
RewriteRule ^article&article=(.*)$ /article/$1 [NC,L,R=301]
RewriteRule ^bio/(.*)$ index.php?page=bio&author=$1 [NC,L]
RewriteRule ^bio&author=(.*)$ /bio/$1 [NC,L,R=301]
RewriteRule ^events/details/(.*)$ index.php?page=events&sub_page=event&event_id=$1 [NC,L]
RewriteRule ^events&sub_page=event&event_id=(.*)$ /events/details/$1 [NC,L,R=301]
RewriteRule ^events/(.*)$ index.php?page=events&sub_page=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [NC,L]

Vhost.conf:
<Directory /var/www/vhosts/parentingspecialneeds.org/httpdocs>
AllowOverride All
Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
</Directory>

Thanks to anyone who can clue me in...
TD :)
 
I wish it was but it's still not fixed. I moved the site to a different server. If you would like to see the broken site, put this in your hosts file:
198.87.99.150 parentingspecialneeds.org

I still need a fix. I can't have a server that is unable to do rewrites. This is a virgin install of Plesk 11.0.9 running on CentoOS 6.2.

Thanks,
TD
 
Anyone have any idea? I now have two critical sites that need ModRewrite to work. I've read every post about this in the Plesk forum and none have a resolution. I'm not the only one with this problem.

There has to be some configuration somewhere overriding this. Reading other forums it sounds like a simple fix but it does not work. Putting something like this in httpd.conf should fix it but it does not:
<Directory "/">
Options +ExecCGI FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
</Directory>

Also, putting this in .htaccess should fix it but it does not:
Options +FollowSymLinks +SymLinksIfOwnerMatch

HELP!
TD
 
Very strange - I can't reproduce it at my server. I perform next steps:
1. Enable .htaccess using http://kb.parallels.com/en/124 at server with PP 11.0 (Centos 6.2 2 with nginx)
2. Create domain with similar content of vhost.conf and .htaccess at server with PP 8.6.0 (Ubuntu 8.04)
3. Run websrvmng --reconfigure-vhost --vhost-name=<domain_name>(check after that vhost.conf is enabled at /var/www/vhosts/<domain_name>/conf/httpd.include)
4. Migrate domain from 8.6.0->11.0 (check after that vhost.conf is enabled at /var/www/vhosts/<domain_name>/conf/last_httpd.include and correct resolving of domain_name)
domain browsed correctly and <domain_name>/index.php 2

Please specify your steps if they are different.
 
Last edited:
I've done some further testing. On another domain on the SAME server, I did a very simple test:
RewriteEngine on
RewriteRule ^tim.html$ ellen.html
This works!

On the problem site, Simply having "RewriteEngine on" (Nothing else in .htaccess. Just "RewriteEngine on") in .htaccess gives the error:
"Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/rtcentertainment.com/httpdocs/" I also get the apache test page rather than an error.

Since these sites are on the same server I figured this would be easy to figure out. Nope... I've done the following:
Added a phpinfo.php file to each site and compared the two. They are identical.
Checked the vhost.conf files. Both empty.
Checked each sites etc/php.ini files. Identical.

Apparently this ONLY effects the default page (DirectoryIndex). I can get to any page on the site if I enter the URI to the page. I can even get to the default page if I enter it: http://parentingspecialneeds.org/index.php (remember, if you want to get to the problem site you'll need to add "198.87.99.150 parentingspecialneeds.org" to your /etc/hosts file.

BTW, having the server send the apache test page seems to be more of a confusion than a help. How can that be disabled?

Thanks,
TD
 
The site that did work with RewriteEngine on stopped working when I did:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all

Such a simple issue and no solution. Guess I have to start looking for something other than Plesk if I want ModRewrite...

And now I discovered many of my sites have this problem:
http://forum.parallels.com/showthread.php?t=260563

WHY? WHY? WHY?

Why would Parallels set the system up so a http-equiv="REFRESH" would change ports on you? WHY? This is insane!
 
Hi,

Can you paste in the contents of your "last_httpd_include" for parentingspecialneeds.org?

I can only assume that something in there is getting in the way. Additionally are you pulling httpd from the CentOS base respositories or somewhere else?

Paul.
 
paulieG,

Here's the contents of parentingspecialneeds.org/conf/last_httpd.include

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:

#/var/www/vhosts/parentingspecialneeds.org/conf/vhost.conf

<VirtualHost 198.87.99.150:7080 127.0.0.1:7080>
ServerName "parentingspecialneeds.org:7080"
ServerAlias "www.parentingspecialneeds.org"
ServerAlias "ipv4.parentingspecialneeds.org"
UseCanonicalName Off


<IfModule mod_suexec.c>
SuexecUserGroup "psn" "psacln"
</IfModule>

ServerAdmin "[email protected]"

DocumentRoot "/var/www/vhosts/parentingspecialneeds.org/httpdocs"
CustomLog /var/www/vhosts/parentingspecialneeds.org/statistics/logs/access_log plesklog
ErrorLog "/var/www/vhosts/parentingspecialneeds.org/statistics/logs/error_log"



<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/parentingspecialneeds.org/web_users"
</IfModule>




Alias "/plesk-stat" "/var/www/vhosts/parentingspecialneeds.org/statistics"
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/parentingspecialneeds.org/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/parentingspecialneeds.org/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/parentingspecialneeds.org/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/parentingspecialneeds.org/statistics/anon_ftpstat
Alias /awstats-icon /var/www/html/awstats/icon


<IfModule mod_ssl.c>
SSLEngine off
</IfModule>

SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/parentingspecialneeds.org/etc/php.ini

<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/parentingspecialneeds.org/etc/php.ini
FcgidMaxRequestLen 16777216
</IfModule>

<Directory /var/www/vhosts/parentingspecialneeds.org/httpdocs>

<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>


Options -Includes -ExecCGI

</Directory>



<Directory "/var/www/vhosts/parentingspecialneeds.org/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/parentingspecialneeds.org/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
<Directory "/var/www/vhosts/parentingspecialneeds.org/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/parentingspecialneeds.org/pd/d..httpsdocs@plesk-stat"
require valid-user
</Directory>



Include "/var/www/vhosts/parentingspecialneeds.org/conf/vhost.conf*"

</VirtualHost>


When I installed the OS I only installed the base OS. I let Plesk do everything else so everything is the default with nothing special.

[root@web146 conf]# repoquery -i httpd

Name : httpd
Version : 2.2.15
Release : 15.el6.centos.1
Architecture: x86_64
Size : 3062864
Packager : CentOS BuildSystem <http://bugs.centos.org>
Group : System Environment/Daemons
URL : http://httpd.apache.org/
Repository : base
Summary : Apache HTTP Server
Source : httpd-2.2.15-15.el6.centos.1.src.rpm
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.

Thanks!
TD
 
Hi Tim,

Nothing in there stands out as wrong to me, however I notice that you're running on Fastcgi PHP when you migrated from Plesk 8.6 (where its mod_php only). Would you be able to try switching back to mod_php to see if that has any effect (it shouldn't but I'm clutching at straws).

The only other thing is that the code you posted later as a supposed global fix is incorrect : http://httpd.apache.org/docs/2.0/mod/core.html#options

You shouldn't mix +/- prefixed options with non-prefixed options, so if that has existed all the way the way through it may be a possible cause, either way it should be fixed/removed.

Paul.
 
paulieG,

I tested the Options settings with no + or -. Same result. I also tried switching to mod_php in the CP. Thank you for the suggestions though! :)

I'm beginning to wonder if this thing can even be fixed. I bought a support ticket with Plesk over a week ago and they still can't figure it out. All they've succeeded in doing is taking the entire server down. :(

I've used Plesk for ten years on many servers but I'm thinking they have made the system so complex it's not practical to be able to understand it, much less fix something when it breaks.

At this point I probably should set up another VM and load v11 and test mod rewrite before doing anything else even though this is a virgin centos 6.2 with all updates and virgin plesk v11. I'm wondering if the Migration Manager has done something to mess up the system. All sites were loaded with MM.

Thanks,
TD
 
Same issue on a subdomain with cgi-bin directory, plesk 11.09.

Fixed by adding vhost.conf :
<Directory /var/www/vhosts/domain.fr/directory>

<Files ~ (\.pl$)>
Options +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
</Files>

Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
</Directory>

Very currious bug.
It's working on other domains or subdomains
 
Hello guys!

According to this post http://wordpress.org/support/topic/followsymlinks-or-symlinksifownermatch-error try to modify your /etc/apache2/mods-enabled/dir.conf and replace this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm
with this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.php index.pl index.xhtml index.htm index.shtml index.cfm

Hope it will help
 
Hello guys!

Open file /etc/httpd/conf.d/welcome.conf, add "-" before Indexes same:

<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>

Restart apache

Hope it will help !!!
 
This fixed my issue.

Hello guys!

According to this post http://wordpress.org/support/topic/followsymlinks-or-symlinksifownermatch-error try to modify your /etc/apache2/mods-enabled/dir.conf and replace this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm
with this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.php index.pl index.xhtml index.htm index.shtml index.cfm

Hope it will help
 
Thanks, saved my day!

Hello guys!

According to this post http://wordpress.org/support/topic/followsymlinks-or-symlinksifownermatch-error try to modify your /etc/apache2/mods-enabled/dir.conf and replace this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm
with this:
Code:
DirectoryIndex at_domains_index.html index.html index.cgi index.php index.pl index.xhtml index.htm index.shtml index.cfm

Hope it will help
 
Back
Top