Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

303
Visualizações
Access error logs on apache AWS EC2 Linux server

I'm getting into my server into the right directory just fine (as su).

cd /var/log/httpd

When I ls, I get:

access_log error_log

However, when I try cd /error_log or cd error_log, I get bash: cd: /error_log: No such file or directory or bash: cd: error_log: Not a directory.

I want to simply view the last 50 or so errors (from PHP file), but not sure how to get to it. I know I need something like tail -n 300 error_log-20130602 | more, but I don't know the log file name.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The logfile name is /var/log/httpd/access_log and /var/log/httpd/error_log with no file extension or date.

That's why you get the error message

bash: cd: error_log: Not a directory.

It's a file

tail or head or more will work on it just fine

last 50 errors should be in the error_log

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda