|
Support
|
kb8030401 - Apache access log file takes too much disk space
|
|
Symptoms
Cause
When Macroscope installs the Apache Web Server, it does it with its default configuration. This configuration specifies that the Web server will log every access to every file it serves. Meaning that in time, the file will grow and if the server is accessed considerably, it will do so quickly.
Resolution
- Turn off the Apache Web server
- Select Start/Run.
- Type net stop Apache2 and press Enter.
- Edit the Apache configuration file
- Select Start/Run .
-
Type notepad c:\progra~1\apache~1\apache2\conf\httpd.conf and press Enter.
Note: The Apache installation path may differ if you choose a different path during installation. - Set the CustomLog line as a comment
- Locate the line starting with CustomLog and insert the character "#" before it. If you wish to have the line searched by the application, you could use the Edit/Search menu of the notepad application. In the search popup, type CustomLog and make sure to search until you find a line that starts with the desired string as there may have other instances of it in the configuration file.
- After inserting the "#" character, you may save the file using the File/Save menu.
- Close the Notepad application.
- Delete the access log file
-
Locate the C:\Program Files\Apache Group\Apache2\Log\Access.log file in Windows Explorerand delete it.
Note: The Apache installation path may differ if you choose a different path during installation. - Turn the Apache Web server on
- Select Start/Run .
- Type net start Apache2 and press Enter.
To verify if the procedure succeeded, you could have a look at the folder C:\Program Files\Apache Group\Apache2\Log; there should be no access.log file created.
Note: The Apache installation path may differ if you choose a different path during installation.
Note: The Apache installation path may differ if you choose a different path during installation.
Applies To
Macroscope 4.7 with Apache installation
Macroscope 4.6 with Apache installation
Printable Version