Re-create error log
Re-create error log
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?
Vesta doesn't seem to create a new one by itself?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Re-create error log
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
ln -f -s /var/log/$WEB_SYSTEM/domains/$domain.*log /home/$user/web/$domain/logs
Change $WEB_SYSTEM, $domain and $user
-
- Posts: 38
- Joined: Tue Aug 16, 2016 4:58 pm
Re: Re-create error log
I assume this is an answer solely for CentOS and never one for Ubuntu?