directory existence before restarting apache

view full story

http://serverfault.com – I've many domain hosted on my server. A new domain is configured with generic configuration. Usually users does not know and delete folders which are given for documentroot path in apache, sometimes when i restart apache after doing changes i get error those means that the directories does not exist. Is it possible to check the existence of folder which are defined for documentroot in apache and then stop and start the apache in short i want to check existence of all the folders path which are in httpd.conf before i issue the command /etc/init.d/httpd stop. Any help please (HowTos)