Log files are taking up all the space.
Posted: Tue Oct 20, 2015 4:39 am
This is my first time building a site on a VPS Server. Mysql shut down and won't restart. I looked at the errorlog and this is what it said:
Entered this:
and it said:
1 /var/log/user.log
1 /var/log/vsftpd.log
1 /var/log/wtmp
1 /var/log/wtmp.1
2 /var/log/vsftpd.log.3
3 /var/log/auth.log.1
6 /var/log/vsftpd.log.1
6 /var/log/vsftpd.log.2
6 /var/log/xferlog
140 /var/log/apache2
Don't know where to go from here really? How can I fix this?
Code: Select all
2015/10/19 21:59:41 [alert] 1956#0: *202471 write() to "/var/log/apache2/domains/sitename.com.bytes" failed (28: No space left on device) while logging request, client: 186.67.166.46, server: sitename.com, request: "GET /site/plugins/image-watermark/js/no-right-click.js?ver=1.5.1 HTTP/1.1", host: "www.sitename.com", referrer: "http://twitter.com"
2015/10/19 22:00:32 [alert] 1956#0: *202787 write() to "/var/log/apach
Code: Select all
du -shm /var/log/* |sort -n|tail -n 10
1 /var/log/user.log
1 /var/log/vsftpd.log
1 /var/log/wtmp
1 /var/log/wtmp.1
2 /var/log/vsftpd.log.3
3 /var/log/auth.log.1
6 /var/log/vsftpd.log.1
6 /var/log/vsftpd.log.2
6 /var/log/xferlog
140 /var/log/apache2
Don't know where to go from here really? How can I fix this?