Plesk

Plesk repair fails: Failed to chroot to /var/www/vhosts/example.com/httpdocs: No such file or directory

Symptoms

The plesk repair utility displays the following message:

ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/vhostmng-content'] with exit code [1]
vhostmng-content failed: Cannot open directory for reading /var/www/vhosts/example.com/httpdocs/.: No such file or directory
Fatal error: std::runtime_error(Failed to chroot to /var/www/vhosts/example.com/httpdocs: No such file or directory)

Cause

The /httpdocs folder does not exist in the /var/www/vhosts/example.com directory.

Resolution

Create the missing /httpdocs folder:

Via Plesk UI

  1. Login to Plesk.
  2. Go to Domains > example.com > File Manager.
  3. Use the Create folder button to create the httpdocs folder.

Via CLI

  1. Connect to the server via SSH.

  2. Run the following command:

    # mkdir /var/www/vhosts/example.com/httpdocs

Exit mobile version