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

It's Time to Upgrade to Fedora 24 Linux If You're Still Using Fedora 22

Fedora Program Manager Jan Kurik announced that the Fedora 22 Linux operating system has officially reached end of its life on July 19, 2016, urging users to upgrade to either the Fedora 23 or Fedora 24 releases. Read more

Running Windows apps on Linux

Now just to clear the air. I personally don't run Windows in a virtual machine or dual-boot. However, there are some games I play using WINE. If you're stuck trying to pull yourself away from legacy Windows applications take heart, there is hope. One of the options above may provide you with a means of using Linux for most daily tasks while still having access to any Windows applications you can't live without. What say you? Do you find yourself dual-booting or using WINE? Perhaps you didn't know that it's possible to run an unregistered copy of Windows 10 without any show-stopping restrictions? Hit the Comments and share your experience with Windows applications as a Linux user. Read more

ArchStrike Ethical Hacking Linux Operating System Gets Its First ISO Builds

The ArchStrike developers have announced today, July 25, 2016, that their Arch Linux-based operating system designed for ethical hackers now has official installation mediums as ISO images. Read more

GNU Linux-libre Kernel 4.7 Officially Released for Users Who Want 100% Freedom

Alexandre Oliva from the GNU Linux-libre project happily announced the release and general availability for download of the GNU Linux-libre 4.7 kernel for those who want 100% freedom when using a GNU/Linux operating system. The release of GNU Linux-libre kernel 4.7 comes a few hours after Linus Torvalds' announcement for the new Linux 4.7 kernel branch, on which GNU Linux-libre 4.7-gnu is based, and, as usual, it contains deblobbing changes for various of the included drivers, including Radeon, Intel i915 CSR, Intel Skylake audio, HFI1 InfiniBand, Realtek rtl8xxxu Wi-Fi, iwlwifi, mwifiex, Broadcom brcmfmac, and Atheros ath10k. Read more