Bobcares

Web reconfiguration in Plesk fails | Resolved

by | Feb 7, 2022

Web reconfiguration in Plesk fails and not sure what to do? Our in-house experts have your back.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team is ready to help customers when web reconfiguration in Plesk fails.

How to resolve Web reconfiguration in Plesk fails

If you have been coming across the following error while attempting web reconfiguration, you have come to the right place.

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

According to our Support Techs, this error often occurs when the server is running on CentOS, RHEL, or CloudLinux of version 6 with the Apache 2.2 version. It also occurs if there was a WordPress Toolkit upgrade to the 5.8 version.

After careful consideration, our Support Team has been able to trace this error back to the WordPress Toolkit bug with the ID #EXTWPTOOLK-8572. Moreover, only Apache 2.3.10 version and higher supports the InheritBefore directive. Fortunately, our Support Techs offer two workaround solutions:

  • Replace apache.php from WordPress Toolkit 5.7
  • Disable Security measurements

How to replace apache.php from WordPress Toolkit 5.7

  1. First, log in to the server through SSH.
  2. Then, we have to download the apache.php file with the following command:
    # wget https://plesk.zendesk.com/hc/article_attachments/4412664653586/apache.php
  3. Next, run the following command to rename the /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.php 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_58
  4. After that, we we will copy the apache.php file from step 2 to /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/ directory with this command:
    # cp apache.php /usr/local/psa/admin/plib/modules/wp-toolkit/resources/webconfigs/apache.php
  5. Then, we have to reconfigure the affected domain as seen below:
    # plesk repair web example.com -y

    Our Support Engineers would like to point out that we can reconfigure all domains on the server with this command:

    # plesk repair web -y

How to Disable Security measurements

  1. First, we have to log in to Plesk.
  2. Then, navigate to Security under WordPress.

     

  3. Next, press the Revert button after selecting the example.com instance.
  4. After that, choose the following options and then select the Revert button:
    • Forbid execution of PHP scripts in the wp-includes directory
    • Enable bot protection
    • Block author scan

In order to revert the settings for multiple WordPress instances, we have to head to WordPress > Security and select the instances. After that, we have to click the Revert button and perform the last step in the workaround solution seen above.

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

Conclusion

In brief, our skilled Support Engineers at Bobcares demonstrated what to do when web reconfiguration in Plesk fails.

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 *

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