How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Claws224 Your Own Question
Claws224, IEEE Network Engineer
Category: Networking
Satisfied Customers: 1256
Experience:  IEEE, Microsoft
Type Your Networking Question Here...
Claws224 is online now
A new question is answered every 9 seconds

I try to track what IP is accessing my apahe web server in

Customer Question

Hi,I try to track what IP is accessing my apahe web server in my Linux server. Using command ps xau i can see my running process:USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
nobody 17393 60.1 0.7 58124 21976 ? R 20:45 6:46 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -EWhere nobody is the user running web server, 17393 is the PID, 60.1 % is the CPU usage. How do i know what pages this user access and what is the ip address of this user?
Submitted: 11 months ago.
Category: Networking
Expert:  derrickonline replied 11 months ago.

I'd be more than happy to assist you. It sounds to be me like you want to see the Access Logs not the running process and which user it's running under.

Apache Access Log File

Apache server records all incoming requests and all requests processed to a log file. The format of the access log is highly configurable. The location and content of the access log are controlled by the CustomLog directive. Default apache access log file location:

  • RHEL / Red Hat / CentOS / Fedora Linux Apache access file location – /var/log/httpd/access_log
  • Debian / Ubuntu Linux Apache access log file location – /var/log/apache2/access.log
  • FreeBSD Apache access log file location – /var/log/httpd-access.log

To find exact apache log file location, you can use grep command:
# grep CustomLog /usr/local/etc/apache22/httpd.conf
# grep CustomLog /etc/apache2/apache2.conf
# grep CustomLog /etc/httpd/conf/httpd.conf