0

I have a website which is hosted on a Ubuntu 12.10 operating system. The problem I am facing these days is, My website goes down often and often.

When i tried to find the issue, it was in the size of my disk which is around 97% used.

When i ran the command,
find / -type f -size +50M -exec du -h {} \; | sort -n
I got some information in which the size of access.log file is 4.5 GB
Can I delete the access.log file in order to free up some space on my disk or is there any way to compress?

4
  • 1
    Heard about logrotate? Anyway as it stands, this is an X-Y problem..
    – heemayl
    May 16, 2016 at 11:55
  • 1
  • As a new user in Ubuntu, i have no idea about how to use or add logrotate using the SSH, can you please assist for the same?
    – atul ugale
    May 16, 2016 at 12:39
  • If i am not wrong, its the /etc/logrotate.conf file where i have to put the rotation code. For example, /var/log/wtmp { missingok monthly create 0664 root utmp rotate 1 }
    – atul ugale
    May 16, 2016 at 12:48

1 Answer 1

0

If it is the log file, Clear this file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .