• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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