Page 1 of 1

Re-create error log

Posted: Thu Nov 12, 2015 11:04 pm
by Fortron
Probally not a VestaCP specific question, but how can I re-create a manually deleted error.log file in my web directory?
Vesta doesn't seem to create a new one by itself?

Re: Re-create error log

Posted: Fri Nov 13, 2015 7:21 am
by tjebbeke
touch /var/log/$WEB_SYSTEM/domains/$domain.error.log
ln -f -s /var/log/$WEB_SYSTEM/domains/$domain.*log /home/$user/web/$domain/logs

Change $WEB_SYSTEM, $domain and $user

Re: Re-create error log

Posted: Tue Apr 07, 2020 3:59 am
by Vegas10128
I assume this is an answer solely for CentOS and never one for Ubuntu?