Directadmin

How to recreate /var/log directory structure

If you’ve accidently removed your /var/log directory, or it was removed by someone else, to recreate it with all permissions, type:

mkdir -m 755 /var/log
cd /var/log
mkdir -m 700 directadmin httpd
mkdir -m 755 exim proftpd httpd/domains
chown diradmin:diradmin directadmin
chown mail:mail exim

then restart the following services:

/etc/init.d/httpd restart
/etc/init.d/directadmin restart
/etc/init.d/exim restart
/etc/init.d/proftpd restart
/etc/init.d/syslog restart