Sub-Server directories can be deleted / renamed, causing the apache server to fail

Wenn we create a sub-server for a main-domain (foo.com with sub-server bar.foo.com), the bar.foo.com folder lies within /home/foo.com/domains/

If a user renames or deletes this directory via FTP, the apache Server fails to (re)start, as the document root is missing and / or the fcgi script cannot be found.

So by deleting / renaming the directory, you can kill the whole webserver-service unintended.

Maybe the directory can be protected via chattr, just like the php5.fcgi script?

Status: 
Active

Comments

Yes, this is a problem ...

What error do you get when Apache tries to start? Is it missing the document root, the php5.fcgi script, or something else?

Could you post the full error messages?