Plesk

WordPress Admin Dashboard is not displayed properly on a website hosted in Plesk: “access forbidden by rule” or “client denied by server configuration”

Symptoms

Cause

JavaScript conflict in WordPress theme or plugin.

Resolution

  1. Log into Plesk.

  2. Go to Domains > example.com > WordPress tab > Security.

  3. On the Security Status page, select the option Disable scripts concatenation for WordPress admin panel and click Secure.

    Note: If the Secure button is grayed out, select the option Disable scripts concatenation for WordPress admin panel and click Revert. Then secure again.

    Click on the image to enlarge
    Security Status 

    Note: In some cases, website code may require the CONCATENATE_SCRIPTS option to be enabled. If required, revert the security option Disable scripts concatenation for WordPress admin panel.

 

Other options to disable scripts concatenation for WordPress admin panel:

 

In wp-config.php file via Plesk

 

  1. Log in to Plesk.

  2. Go to Domains > example.com > File Manager.

  3. Open the document root and click on the wp-config.php file.

  4. Add the following record at the end of the file before the require_once directive:

    define('CONCATENATE_SCRIPTS', false);

  5. Save the changes.

 

In wp-config.php file via a command-line interface

 

  1. Connect to the Plesk server via SSH.

  2. Open the file /var/www/vhosts/example.com/httpdocs/wp-config.php in a text editor (for example, vi editor).

  3. Add the following record at the end of the file before the require_once directive:

    define('CONCATENATE_SCRIPTS', false);

  4. Save the changes and close the file.

 

Exit mobile version