Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 apache log file location on AMI

I'm learning about AWS and EC2. I set up a AMI linux box that is running apache and mysql setup from yum. It was working for a bit, but now its flatlined. This is strange, so I thought to go check the logs. I'm moving around via a putty terminal and I cannot find the log files location. Does anyone know there that information is stored. Thanks you for the help.

Edit: I would like to generalize and ask about the location of any important log files that the system creates. This is new stuff to be, so the location of any useful files to better understand what is going on would be helpful.

like image 222
usumoio Avatar asked Apr 22 '13 21:04

usumoio


2 Answers

/var/log directory usually has application and unix logs.

like image 148
Michael McGarrah Avatar answered Sep 28 '22 10:09

Michael McGarrah


ubuntu under AWS server

sudo tail -100 /var/log/apache2/error.log

linux

/var/log
like image 35
Adiii Avatar answered Sep 28 '22 12:09

Adiii