diff --git a/server/cron_daily.php b/server/cron_daily.php
index d02daf8b682144c0bbbbcaa5bfe5d8a7ef331412..ec8b13e88b9c98a9c8585b936a39429776d7c101 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -257,7 +257,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1'.$aliasdomain.'"';
 // Make the web logfiles directories world readable to enable ftp access
 #######################################################################################################
 
-exec('chmod +r /var/log/ispconfig/httpd/*');
+if(is_dir('/var/log/ispconfig/httpd')) exec('chmod +r /var/log/ispconfig/httpd/*');
 
 #######################################################################################################
 // Manage and compress web logfiles and create traffic statistics