Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

293
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!