Submitted by -eclipse- on Mon, 06/06/2016 - 04:45Pro LicenseeComment #1
Hi all
Does anybody know if it's possible to auto create system folders in a users virtual site if the user accidentally has deleted them? Normally the home folder consist of the following folders (including some files) awstats domains fcgi-bin logs public_html cgi-bin etc homes Maildir tmp
One of my users has somehow deleted all the folders except fcgi-bin and cgi-bin. I got an automatic mail this night telling me that the Virtualmin Validation Failed for the specific Virtual Server. Home directory : Sub-directory public_html under home directory does not exist AWstats reporting : AWstats data directory awstats does not exist
So, is there someway we can auto generate the system folders or are we in a need of a restore from backup?? Thanks in advance.
Submitted by andreychek on Mon, 06/06/2016 - 09:02Comment #2
Howdy -- hmm, if the public_html folder doesn't exist, and had data in it previously -- the only way to get that back would be to restore from a backup.
Now, regarding other directories -- I'm not entirely certain of this, but you might try disabling the Apache website feature for that particular domain, and then re-enable it... does doing that cause it to re-create the other folders?
Submitted by andreychek on Wed, 06/15/2016 - 16:49Comment #5
Either one of those options would work, depending on your preference... you can manually re-create them, or restore it from a backup when those paths were present.
Submitted by andreychek on Tue, 06/21/2016 - 10:05Comment #7
Some will be. For any that aren't, you could always try changing the PHP Execution Mode to something else, and then change it back to what it is now, that should also re-create a number of those files.
Comments
Submitted by -eclipse- on Mon, 06/06/2016 - 04:45 Pro Licensee Comment #1
Hi all
Does anybody know if it's possible to auto create system folders in a users virtual site if the user accidentally has deleted them? Normally the home folder consist of the following folders (including some files) awstats domains fcgi-bin logs public_html cgi-bin etc homes Maildir tmp
One of my users has somehow deleted all the folders except fcgi-bin and cgi-bin. I got an automatic mail this night telling me that the Virtualmin Validation Failed for the specific Virtual Server. Home directory : Sub-directory public_html under home directory does not exist AWstats reporting : AWstats data directory awstats does not exist
So, is there someway we can auto generate the system folders or are we in a need of a restore from backup?? Thanks in advance.
Tim
Submitted by andreychek on Mon, 06/06/2016 - 09:02 Comment #2
Howdy -- hmm, if the public_html folder doesn't exist, and had data in it previously -- the only way to get that back would be to restore from a backup.
Now, regarding other directories -- I'm not entirely certain of this, but you might try disabling the Apache website feature for that particular domain, and then re-enable it... does doing that cause it to re-create the other folders?
Submitted by JamieCameron on Mon, 06/06/2016 - 21:13 Comment #3
There's no easy way to automatically re-create the folders, but the validation check will tell you which ones are missing.
Submitted by -eclipse- on Wed, 06/15/2016 - 16:15 Pro Licensee Comment #4
Hi all
So a manual re-create is needed or restore?
Submitted by andreychek on Wed, 06/15/2016 - 16:49 Comment #5
Either one of those options would work, depending on your preference... you can manually re-create them, or restore it from a backup when those paths were present.
Submitted by -eclipse- on Tue, 06/21/2016 - 04:08 Pro Licensee Comment #6
Hi Eric
Thanks, I will try that next time I have the issue. I suspect the files in those folders will be auto created when the folders are present again?
Submitted by andreychek on Tue, 06/21/2016 - 10:05 Comment #7
Some will be. For any that aren't, you could always try changing the PHP Execution Mode to something else, and then change it back to what it is now, that should also re-create a number of those files.