Friday, July 31, 2015

Ruby on Rails - How to clear apache logs from server

  • Login to the server ssh user@ip
  • Find access.log and error.log (Present in /var/log folder in my case or use the command "locate error.log" and "locate access.log" to search for the file)
  • cd /var/log
  • sudo rm yourwebsite.com-access.log
  • sudo rm yourwebsite.com-error.log
  • Restart using the command sudo service httpd restart
  • Next restart servers (touch tmp/restart.txt)

No comments:

Post a Comment