Unable to read or execute files from the WordPress root directory

Created:

2016-11-16 12:59:38 UTC

Modified:

2017-08-17 13:09:35 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Unable to read or execute files from the WordPress root directory

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  1. WordPress installation is not working for example.com domain with the following error:

    Unable to read or execute files from the WordPress root directory.
  2. Root directory for WordPress instance is missing:

    # ll /var/www/vhosts/example.com/httpdocs/wordpress
    ls: cannot access /var/www/vhosts/example.com/httpdocs/wordpress No such file or directory
  3. There is the error under domain page in Home > Domains > example.com regarding WordPress instance:

    {"err_code":40001,"err_message":"Unable to read or execute files from WordPress root directory: \\/var\\/www\\/vhosts\\/example.com\\/httpdocs\\/wordpress\\/"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40002,"err_message":"Unable to locate configuration path"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40002,"err_message":"Unable to read configuration file: "} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40003,"err_message":"Unable to read or execute files from wp-admin\\/includes directory': \\/var\\/www\\/vhosts\\/example.com\\/httpdocs\\/wordpress\\/wp-admin\\/includes"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505

Cause

Root directory for affected WordPress instance was removed from the server or moved somewhere else directly from command line and not via Plesk.

Resolution

  1. Make a subscription backup in a Backup Manager

  2. Remove orphaned information about removed WordPress instance in Home > Subscriptions > example.com > Application tab using Remove link

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