Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Cleaning Apache Log Directories

    This information is not applicable to Primo VE environments. For more details on Primo VE configuration, see Primo VE.
    The clean_apache_logs.sh script allows you to clean the Apache log directory by backing up and compressing the following log files:
    • access_log
    • access_log_ssl
    • error_log
    • error_log_ssl
    This script is located under the following directory (be_bin), where <r> indicates the release in which Primo was initially installed and <c> indicates the Primo copy:
    /exlibris/primo/p<r><c><r>/ng/primo/home/system/publish/bin
    To execute the delete Apache log script:
    1. Log on to the server as the primo user.
      If your environment redirects Apache to port 80, you will need to log on as the root user to run the script. To log on as the root user, enter su and then enter the password of the root user when prompted.
    2. Enter the following command to move to the directory that contains the log script:
      be_bin
    3. Enter the following command to run the script:
      ./clean_apache_logs.sh