Articles in this section

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

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

The plesk repair fs utility displays the following message:

ERR [util_exec] proc_close() failed ['/opt/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 folder /httpdocs is missing from the domain's directory, and is configured as Document Root.

Resolution

Apply one of the following solutions:

Create the missing folder.
  1. Log into Plesk
  2. Go to Domains > example.com > Dashboard > Files
  3. Go to Home Directory
  4. Click on the + sign and then Create Directory
  5. Type httpdocs and click Ok
Choose the correct website's document root
  1. Log into Plesk
  2. Go to Domains > example.com > Hosting & DNS > Hosting
  3. Under Document root type the right folder where website's content is located.
  4. Click Save
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.