• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Regenerate vhost folders structure

antonio.abansys

New Pleskian
Server operating system version
CentOS7
Plesk version and microupdate number
obsidian 18.0.50
Hi to all,

I have a question, how can I regenerate the folders structure for a specific domain?
I put you in context: I have a client that had the great idea to delete all folders inside their file manager (httpdocs, logs, error_docs etc..)
There are any way to regenerate these structure again without creating again the domain?

Thank you!
 
Did you try to run # plesk repair web example.com? Not sure if that will regenerate the directory structure, but it's worth a try I guess.
 
Why not restore from a backup? I can already tell you that plesk repair fs domain.tld won't work if httpdocs was also deleted. You're best bet would be to restore from a backup.
 
There are any way to regenerate these structure again without creating again the domain?
If that is the only domain of the subscription you can change the hosting type to "no hosting" or "forwarding" and change it back afterwards. That will recreate the directories.
 
Back
Top