How to recreate all missing vhost folders?

Created:

2016-11-16 13:13:25 UTC

Modified:

2017-05-15 18:25:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to recreate all missing vhost folders?

Applicable to:

  • Plesk 12.5 for Linux

Question

Plesk database contains domains that do not exist physically on the server. How to recreate all missing vhost folders?

File manager for domain domain.tld shows:

Message Unable to find the directory /var/www/vhosts/domain.tld/: filemng failed: filemng: stat failed: No such file or directory System error 2: No such file or directory
File FileManagerController.php
Line 1060
Type PleskUtilException

Answer

To restore vhosts directories the following actions should be performed:

  1. Download and unzip ' Fs.zip '

    # wget https://support.plesk.com/hc/article_attachments/115004385349/Fs.zip
    # unzip Fs.zip
  2. Backup the original file:

    ~# mv /usr/local/psa/admin/plib/Repair/Aspect/Fs.php{,_backup}
  3. Copy extracted Fs.php to /usr/local/psa/admin/plib/Repair/Aspect/

    ~# cp Fs.php /usr/local/psa/admin/plib/Repair/Aspect/
  4. Restore the missing vhosts directories:

  5. For particular domain:

        ~# plesk repair fs -v domain.tld
  6. For all domains at once:

        ~# plesk repair fs -v

Attachments:

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