Location of the Ubuntu system Apache log files

Source: Internet
Author: User
Tags apache error log apache log linux mint

Apache error log location on Debian,ubuntu or Linux Mint

Default error log

On Debian-based Linux, the system-wide Apache error log default location is /var/log/apache2/error.log. The default location can be modified by editing the Apache configuration file.

Custom error logs

To find a custom error log location, open/etc/apache2/apache2.conf with a text editor and look for a line that begins with errorlog, which specifies the location of the custom Apache error log file. For example, the following lines can be found in an unmodified Apache configuration file:

    1. ErrorLog ${APACHE_LOG_DIR}/error.log

In this case, the location is configured with the APACHELOGDIR environment variable, which is already defined in/etc/apache2/envvars.

    1. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

In reality, errorlog may point to any path in your Linux system

Location of the Ubuntu system Apache log files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.