• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Need to regenerate subscriptions

XAMeLeOH

New Pleskian
Good day people!

My directory /var/www was deleted by accident. Is there a way to regenerate all subscription files? I know this action won't recovery my data. All I want is fresh subscriptions.

Thank you.
 
Backup/restore can help.

* Create vhosts directory:
# mkdir -p /var/www/vhosts

* Backup a subscription in Plesk (Domain configuration and content)
* Restore the data from backup

Site directory will be created.
 
Unfortunately doesn't work

In my test I upgraded Plesk to last 11.5.30 version right after deleting /var/www.
Without Plesk upgrade after removing /var/www (for Debian or Ubuntu):

# dpkg-reconfigure psa-vhost
# /usr/local/psa/bootstrapper/pp11.5.30-bootstrapper/bootstrapper.sh repair
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-server
# mkdir /var/www/vhosts/system

Then domain directory can be created using the following KB article:
http://kb.parallels.com/en/115454

# wget http://kb.parallels.com/Attachments/23464/Attachments/recover_plesk_directories.zip
# unzip recover_plesk_directories.zip
# bash recover_plesk_directories.sh domain.tld
 
Last edited:
Back
Top