Forum Moderators: phranque

Message Too Old, No Replies

Is my Apache logging?

         

sunny7day

11:12 am on Mar 6, 2010 (gmt 0)

10+ Year Member



How do I know if it is logging? And where can I find the log file?

jdMorgan

6:01 am on Mar 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is no standard location. Ask your host or find the log file path declaration if you've got server config access privileges. If the log file is not empty, then it's logging.

Jim

sunny7day

8:15 am on Mar 7, 2010 (gmt 0)

10+ Year Member



Can you tell me how can I find out the log file path on my own server? Because the log file seems missing.

g1smd

8:48 am on Mar 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is no standard location. Ask your host or find the log file path declaration if you've got server config access privileges.

sunny7day

10:52 am on Mar 7, 2010 (gmt 0)

10+ Year Member



I've got server config access privileges, as I said, it is my own server. Just don't know where the log file is.

Frank_Rizzo

12:19 pm on Mar 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Knowing the O/S will help.

Can you view the httpd.conf file? It could configured in there.

What's in

/var/log
/etc/httpd

directories?

sunny7day

1:43 pm on Mar 7, 2010 (gmt 0)

10+ Year Member



ok, here's my config:

Qnap TS-509 Pro Turbo NAS (http://www.qnap.com/pro_detail_feature.asp?p_id=104)
It comes with embedded Linux with Apache web server.

The path for the Apache config file seems to be "/usr/local/apache/conf/apache.conf", it has the following information in the file:

ErrorLog [b]logs/error_log[/b]
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" com
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
</IfModule>
CustomLog logs/access_log combined #
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog [b]logs/access_log[/b] combined
</IfModule>

ServerSignature On


So, according to the above information, the log file should be under the logs/ directory. But when I go to "/usr/local/apache/logs" and type ls, there is nothing in there.

The reason I want to find the log file is because I want to install AWStats (if you know what it is) in the NAS box.

Frank_Rizzo

3:26 pm on Mar 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try

locate access_log

or

find / -name access_log

if the files do not exist, or are 0 byte check the file permission / ownership

Also look for error_log and view the latest entries. It may explain if there is an error with the access log file.

Try this too:

ls -l /var/log