Sun Java System Access Manager Policy Agent 2.2 Guide for Apache HTTP Server 2.0.54

Windows Systems: Agent Uninstallation for Apache HTTP Server

This the section leads you through the uninstallation process, which first requires you to unconfigure the agent from each web site for which it is currently configured. This section is organized as follows:

Unconfiguring Agent for Apache HTTP Server on Windows Systems

If you no longer require Agent for Apache HTTP Server to protect a particular web site, you can unconfigure the agent from that web site. Furthermore, if you want to uninstall the agent, you must first unconfigure it from all the web sites for which it was configured.

Perform the following steps to unconfigure Agent for Apache HTTP Server from a web site. Make sure that you use the agent configuration file specific to the web site you want to unconfigure. If you need to unconfigure the agent from multiple web sites, you must repeat these steps for each of the web sites.

ProcedureTo Unconfigure Agent for Apache HTTP Server on Windows Systems

  1. Stop the web site for which you have configured the agent.

  2. Change to the directory PolicyAgent-base\apache\bin

  3. Run the following VB script to unconfigure the agent:

    cscript.exe ApacheAdmin.vbs -unconfig defaultConfig

    ApacheAdmin.vbs

    is a VB script that uses the output of the ApacheCreateConfig.vbs script. The output was saved to a configuration file, which for this example is represented by defaultConfig.

    -unconfig

    is the option that allows the output to be used to unconfigure the web site.

    defaultConfig

    represents the agent configuration file created previously as described in Windows Systems: To Create Configuration Files, Agent for Apache HTTP Server.

    The script unconfigures the agent and displays the following message:


    Microsoft (R) Windows Script Host Version 5.6
    
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
    
    Copyright c 2004 Sun Microsystems, Inc. All rights reserved
    
    Use is subject to license terms
    
    Enter the Agent Resource File Name [ApacheResource.en]:
    
    Removing the agent configuration directory
    
    Restoring the original httpd.conf
    
    Completed Unconfiguring the Agent for Apache 2.0.x. Re-start your server instance

    The unconfiguration does the following:

    • Removes the agent configuration directory (specific to a web site)

    • Removes the entries from Windows registry.

    • Removes the wild card application mappings in Apache HTTP Server.

Uninstallation of Agent for Apache HTTP Server on Windows Systems

Before running the uninstallation program, ensure that you have already unconfigured the agent from all the web sites for which it was configured as described in Unconfiguring Agent for Apache HTTP Server on Windows Systems. Perform the following steps to uninstall the agent.

ProcedureTo Uninstall Agent for Apache HTTP Server

  1. Change to the following directory:

    PolicyAgent-base\
  2. Run the following command to uninstall the agent:

    java -cp . uninstall_Sun_Java_tm_System_Access_Manager_Policy_Agent
  3. Click Next in the Welcome panel.

  4. Click Uninstall Now.

    The program uninstalls the agent.

  5. Restart the server.