Language Selection

English French German Italian Portuguese Spanish

Troubleshooting with Apache logging

Filed under
HowTos

The Apache Web server (Apache) comes with a powerful logging framework. In the default configuration, Apache logs all errors to an error log and all access requests to an access log. The default level of logging is sufficient for analyzing traffic patterns and for getting basic information about errors, but it may be inadequate for troubleshooting purposes. Familiarity with all the logging features can help you troubleshoot the Web server or applications hosted on Apache.

In the default installation of Apache on Fedora, you can find the access log at /etc/httpd/logs/access_log and the error log at /etc/httpd/logs/error_log. The access log captures one line of information for each request. The error log captures the date and time of a request, the severity level of an event, the client's IP address, and the description of the error. Error logging is a part of the core functionality of Apache, while other bits in the logging functionality come from modules such as mod_log_config, mod_dumpio, and mod_log_forensic.

You can customize the format of access log by using the configuration directive LogFormat in the configuration file httpd.conf (in /etc/httpd/conf directory on Fedora).

For instance,




More in Tux Machines

Android Leftovers

openSUSE Tumbleweed Is Now Powered by Linux Kernel 4.16, KDE Plasma 5.12.4

Quite a few snapshots have been released this week and the last one for OpenSuSE Tumbleweed, bringing some of the latest GNU/Linux technologies and Open Source software. Among these, we can mention the recently released Linux 4.16 kernel series as the operating system is now powered by Linux kernel 4.16.2. "The 4.16.2 Linux Kernel made ip_tunnel, ipv6, ip6_gre, ip6_tunnel and vti6 better to validate user provided tunnel names. Due to a build system failure, not all 4.16.2 binaries were built correctly; this will be resolved in the 20180417 snapshot, which will be released shortly," said Douglas DeMaio in a recent report. Read more

Best open source help desk software

The help desk market is crowded and dominated by player like Zendesk, Salesforce and Spiceworks, but there are some solid open source alternatives for smaller businesses with the time and patience. A good piece of help desk software should allow any business to log, track and respond to customer support queries across a range of platforms. Open source solutions may not be as feature rich or fully formed out of the box, and they won't look as good as Zendesk or Salesforce, but they give great customisation options and are much more cost effective than closed source solutions. Read more

Linux Kernel 4.15 Reached End of Life, Users Urged to Move to Linux 4.16 Now

After a very busy cycle due to the Meltdown and Spectre security vulnerabilities, which were publicly disclosed earlier this year and later discovered to put billions of devices using modern processors at risk of attacks, the Linux 4.15 kernel series was released at the of January heavily redesign against two critical hardware bugs. Now, nearly three months and only eighteen maintenance updates later, the Linux 4.15 kernel series reached end of life and it will no longer receive support. As such, all those using a kernel from the Linux 4.15 branch on their GNU/Linux distributions are urged to upgrade to the latest Linux 4.16 kernel series as soon as possible. Read more