James Bachini

apache

  • Apache Logs – Disk Space Ubuntu Plesk

    One of my servers started groaning early last week and it turned out I had log files accumulating to nearly 1TB. Log rotation was switched on but it still wasn’t ideal. I solved this by ssh’ing into a root shell and running the following command: du -a /var | sort -n -r | head -n…

  • Three ways to debug php

    Method 1 – error.log For this to work you need to be coding in a linux environment with php, apache etc setup. This is the best way I have found and what I currently use to debug my applications/web pages. open up a new terminal and type: tail -f /var/log/apache2/error.log This will give you a…