The Apache Configuration FileThe Apache configuration file is usually called
httpd.conf and is found in one of several common locations:
Linux/etc/httpd/conf/httpd.conf or
/etc/apache/conf/httpd.conf for an installation from Linux distribution files
/usr/local/apache/conf/httpd.conf for an installation fromApache Foundation files and
/opt/lampp/etc/httpd.conf for an XAMPP installationWindowsC:\Program Files\xampp\apache\conf\httpd.conf for an XAMPP installation
Mac OS X/Applications/xampp/etc/httpd.conf for an XAMPP installation, and
/etc/httpd/httpd.conf for the installation of Apache that is part of the standard Mac OS X
configuration
It’s increasingly common to find servers
configured in a modular way, with a main configuration file that reads in other files, for example under the directory
/etc/httpd/modules.d on a Linux system, or in the
apache\conf\extra directory under the XAMPP
install directory. For example, directives specific to PHP
are often stored in the file /etc/httpd/modules.d/70_mod_php.conf.
If you make changes to the Apache configuration file, you need to restart the web server to put the changes into effect.
The Apache Error LogCommon locations for the web server error log include:
Linux/usr/local/apache/logs/error.log for Apache installed
from Apache Foundation files,
/var/log/httpd/error_log or
/var/log/apache/error.log for an installation using distribution packages, and
/opt/lampp/logs/error_log for an XAMPP installation
WindowsC:\Program Files\xampp\apache\logs\error.log for an XAMPP installation
Mac OS X/Applications/xampp/xamppfiles/logs/error_log for an XAMPP installation,
and
/private/var/log/httpd/error_log for the Apache installation that is part of the standard
Mac OS X configurationShare with your friends: