Add to Favourites Add to Favourites    Print this Article Print this Article

I need to recreate my /var/log directory

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

/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

Was this answer helpful?

Also Read