Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. By default, Apache is installed in C:\Apache24. If you are using a different directory, adjust the paths accordingly.

  2. The main configuration file is typically located at 'C:\Apache24\conf\httpd.conf'. Open 'httpd.conf' in a text editor

  3. Find the section in 'httpd.conf' where logging is configured. It It should have below entry:

...

Code Block
CustomLog "<Log Directory>/access.log" combined

Replace <Log Directory> with actual log file path/directory.

  1. Save 'httpd.conf' and close the text editor.

  2. Open Command Prompt as an administrator and restart the Apache service

...

  1. By default and depending upon Linux distribution, Apache's configuration directory would be '/etc/httpd' or '/etc/apache2'. The main configuration file would be located at '/etc/httpd/conf/httpd.conf' or '/etc/apache2/apache2.conf'.

  2. Based on linux distribution, open 'httpd.conf' or 'apache2.conf' using text editor

Code Block
vi /etc/httpd/conf/httpd.conf

or

Code Block
vi /etc/apache2/apache2.conf
  1. Find the section in 'httpd.conf/apache2.conf' where logging is configured. It should have below entry:

...

Code Block
CustomLog "<Log Directory>/access.log" combined

Replace <Log Directory> with actual log file path/directory.

...

Code Block
systemctl restart httpd

or

Code Block
systemctl restart apache2

...