Databases Reference
In-Depth Information
The Apache Configuration File
The 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 Li-
nux distribution files; /usr/local/apache/conf/httpd.conf for an installation from
Apache Foundation files; and /opt/lampp/etc/httpd.conf for an XAMPP installation
Windows
C:\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 Log
Common 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
Windows
C:\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 configuration
Starting and Stopping Apache
Apache web server installations usually include a control script called: apachectl that
you can use to start or stop the server. On newer installations this is sometimes called
 
Search WWH ::




Custom Search