How to manage Apache Web Server

How to manage apache web server ?

Below are some basic apache web server management path and files which we should know to work smoothly.

Default Directory : /var/www/html/ By default apache served on this directory . While this can be changed by changing apache configuration file

Apache Configuratio Directory : /etc/apache2/ All apache configuration files resides here in this directory

Apache Mail configuration file : /etc/apache2/apache2.conf . The main apache configuration file

Apache listening ports file : /etc/apache2/ports.conf Having list of ports which apache will listen ( 80 and 443)

Virtual host stored file : /etc/apache2/sites-available/ Apache will not use this file unless its linked with sites-enabled directory

Enabled Virtual Host stored file : /etc/apache2/sites-enabled/ enabled per site virtual host directory. a2ensite links sites-available directory with sites-enabled directory

/etc/apache2/conf-available//etc/apache2/conf-enabled/: These directories have the same relationship as the sites-available and sites-enabled directories, but are used to store configuration fragments that do not belong in a virtual host. Files in the conf-available directory can be enabled with the a2enconf command and disabled with the a2disconf command.

/etc/apache2/mods-available//etc/apache2/mods-enabled/: These directories contain the available and enabled modules, respectively. Files ending in .load contain fragments to load specific modules, while files ending in .conf contain the configuration for those modules. Modules can be enabled and disabled using the a2enmod and a2dismod command.

/var/log/apache2/access.log: By default, every request to your web server is recorded in this log file unless Apache is configured to do otherwise.

/var/log/apache2/error.log: By default, all errors are recorded in this file. The LogLevel directive in the Apache configuration specifies how much detail the error logs will contain.


* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.