Article

Unloading Apache WebServer produces a "press key to continue" prompt

Author Info

2 December 2008 - 1:15pm
Submitted by: Michael Bell

article
Reads:

1422

Score:
0
0
 
Comments:

0

Working around the "press any key" prompt when unloading Apache.

This has been reported to Novell engineering.

This uses an unsupported alternative log rotation NLM provided by a 3rd party. Novell does not support or warrant this solution, use of this solution is AT YOUR OWN RISK.

With this solution, the size of log files will still not be limited, but the logs will roll to new file names on a daily basis.

  1. Perform all of the tasks outlined in TID7001892, and verify your Apache Server is working before continuing.
  2. Download the mod_log_rotate NLM from http://www.gknw.net/development/apache/httpd-2.0/n.... The current latest version is for 2.0.61, but works with 2.0.63. Unzip the archive file, and place the mod_log_rotate.nlm file in sys:\apache2\modules
  3. Reopen sys:\apache2\httpd.conf
  4. Find this line:
    LoadModule auth_ldap_module modules/authldap.nlm

  5. Just below it, insert the following lines:
    # Load the module mod_log_rotate 
    # This is a unsupported third party item - do not report bugs to Novell. 
    # Downloaded from http://www.gknw.net 
    LoadModule log_rotate_module modules/mod_log_rotate.nlm 
    # turn on rotation function 
    RotateLogs On 
    # make it rotate relative to local time, instead of UTC 
    RotateLogsLocalTime On 
    # make it rotate once a day 
    RotateInterval 86400 
    
    

  6. Save httpd.conf
  7. Restart Apache (ap2webdn, ap2webup)

Comments:
David sent in a comment that there is another solution for this by Guenter Knauf: http://www.gknw.net/phpbb/viewtopic.php?t=445


Author Info

2 December 2008 - 1:15pm
Submitted by: Michael Bell




User Comments

© 2009 Novell, Inc. All Rights Reserved.