Bobcares

Unknown option ‘InheritBefore’ | Fix Methods

PDF Header PDF Footer

Let’s work on Web reconfiguration in Plesk fails: Unknown option ‘InheritBefore’. At Bobcares our Server Management Support Services can give you a detailed note on the process.

Unknown option ‘InheritBefore’ Symptoms

Unknown option 'InheritBefore'

  • The server is running on the RHEL-based OS of version 6 with the Apache 2.2 version.
 
  • WordPress Toolkit with an upgraded version.
 

To perform web reconfiguration, the below error appears:

 

Syntax error on line 121 of /etc/httpd/conf/plesk.conf.d,/vhosts/example.com.conf: RewriteOptions: unknown option 'InheritBefore'Copy Code

 

Cause

 

The WordPress Toolkit bug with the ID “#EXTWPTOOLK-8572″, which will fix in the next release versions.

 

The InheritBefore directive is only supported in Apache, starting from the 2.3.10 version and above.

 

Resolution

 

Migrate to a server that supports Apache of the 2.3.10 version.

 

In case of migration is not an option, then apply one of the methods as shown:

 

Method 1: Replace apache.php from WordPress Toolkit 5.7

 

Log into the server via SSH.

 

Download attached

apache.phpCopy Code
file with the command:

wget https://plesk.zendesk.com/hc/article_attachments/4412664653586/apache.phpCopy Code

 

Rename

/usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.phpCopy Code
file:

mv /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.php /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.php_orig_58Copy Code

 

Copy downloaded

apache.phpCopy Code
to
/usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/Copy Code
directory:

cp apache.php /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.phpCopy Code

 

Reconfigure affected

website.comCopy Code
domain with the command:

plesk repair web website.com -yCopy Code

 

In case if required to reconfigure all domains on the server, execute the below command:

plesk repair web -yCopy Code

 

During the execution of this command, we can note that the websites will be temporarily unavailable. So it is recommended to execute in on the maintenance window.

 

Method 2: Disable Security measurements

 

First Log into Plesk.

 

Then Go to WordPress >> Security.

 

Select

website.comCopy Code
instance and press the Revert button:

 

1. Need to forbid the execution of PHP scripts in the wp-includes directory.

 

2. Block author scan.

 

3. Enable bot protection.

 

Note: to revert these settings for multiple WP instances, in WordPress >> Security page select all required instances, and press the Revert button. Then perform the same actions that described in step 4.

 

[Looking for a solution to another query? We are just a click away.]

 

Conclusion

 

To conclude, we have checked two methods of resolution about the Unknown option ‘InheritBefore’ during the web reconfiguration in Plesk fails. InheritBefore directive is only supported in Apache.  This starting from the 2.3.10 version and above.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

Plesk Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.
server management

Custom WordPress Development Solutions for Your Business

Talk to us

Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!