SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
3RZHU&KXWH6KXWGRZQ8WLOLW
w w w. a p c c . c o m   IRU$SDFKH:HE6HUYHU

Product Overview


Purpose              American Power Conversion (APC) has developed the APC PowerChute
                     Shutdown Utility for Apache Web Server to configure the automatic shut-
                     down of Apache HTTP Server software running on a UNIX operating system.
                     Shutdown is invoked by PowerChute® plus when it detects a given condition
                     in the attached APC uninterruptible power supply (UPS).



Versions Supported   The Shutdown Utility for Apache Web Server supports Apache HTTP Server
                     releases 1.2.x and 1.3.x running on Sun® Solaris™ SPARCStations and IBM®
                     AIX systems.



Apache HTTP Server   An Apache Web server—the common name for a server running Apache
Software             HTTP Server software—manages Web sites by storing Web pages which are
                     then sent out in response to HTTP requests from remote browsers. Apache
                     Web servers often work in conjunction with e-commerce packages and data-
                     base software to manage large volumes of customer transactions.



Apache Web Servers   In the event of a sudden loss of power, an Apache Web server without UPS
and Power Failure    protection does not complete the steps it would normally take in order to close
                     all open Web transactions and shut down. When the Apache Web server is not
                     correctly shut down, log files may be incomplete, incorrect, or corrupted. Thus
                     administrators can lose critical transaction data (data upload or download
                     transactions, etc.) when the Apache Web server is stopped abnormally.
                     A protected Apache Web server that lacks automatic shutdown capability
                     requires the presence of the Web administrator. In the event of a power failure,
                     the administrator must quickly send a complex “kill” command to the server
                     in order to shut down the software before the UPS stops supplying power.


                                                                             continued on next page




                                        User Guide
                                             1
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

Product Overview, continued

APC Solution to                        The Shutdown Utility for Apache Web Server provides a solution to the prob-
Apache Web Server                      lem of abnormal shutdown of an Apache Web server. The utility automates
Shutdown                               the process of creating the proper command script to be invoked by Power-
                                       Chute plus in the event of a power failure.
                                       While the APC UPS is providing battery power to your Apache Web server
                                       during a power failure, PowerChute plus (via FlexEvents) initiates the com-
                                       mand script which prevents new connections, finishes processing current
                                       transactions, shuts down the software gracefully, and logs all transactions.



Features of the Utility                With the Shutdown Utility for Apache Web Server you can:
                                           •   Easily configure PowerChute plus to shut down your Apache Web
                                               server automatically during a power failure.
                                           •   Keep a log of all unattended shutdowns.
                                           •   Specify the location of the shutdown script.




                                                         User Guide
                                                              2
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server


Using the Shutdown Utility for Apache Web Server


Overview                               Setting up your Apache Web server to use the shutdown utility will require
                                       you to perform several procedures:
                                           1. Downloading the Utility to your system, if you have not already done
                                              so.
                                           2. Running the Utility to configure your Web server for shutdown.
                                           3. Setting Up PowerChute plus to run the shutdown script created in
                                              Procedure 2.


Downloading the                        To download the utility to your system:
Utility
                                           1. Go to Application Shutdown Utilities from the Free Software
                                              Upgrades page on the APC Web site.
                                           2. Select the link entitled apacheshut.tar.
                                           3. Create or select a download directory and filename for the file. If you
                                              give the download file a different name, you must ensure that the new
                                              name has the same tar extension. Select OK. The brief download will
                                              begin.
                                           4. Go to the download directory. From the command line, type:
                                                       tar -xvf filename
                                               where filename is the name of the file you downloaded in Step 3. Press
                                               ENTER. The command will extract 4 files:

                                               a. apacheshut—the Shutdown Utility for Apache Web Server.
                                               b. apacheshut.pdf—this user guide in portable document format
                                                  (PDF).
                                               c. README—a text file with basic information on the contents of
                                                  the download.
                                               d. language.txt—a file for use only by the shutdown utility.


                                                                                              continued on next page




                                                         User Guide
                                                              3
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

Using the Shutdown Utility for Apache Web Server, continued

Required Privileges                    To use the utility, you must have one of the following privileges:
                                           •   root
                                           •   root equivalent
                                           •   write to file system
                                       If necessary, change your privileges to match one of the three privileges listed
                                       above. For information on how to change privileges, refer to the instructions
                                       available for your UNIX system.



Required Information                   When you run the utility, you will be asked for two pieces of information:
                                           •   Location of the Apache Web Server configuration files
                                           •   Location for the shutdown script that will be created by this utility.
                                       You will be able to use the default path or enter a path of your choosing.



Running the Utility                    To run the Shutdown Utility for Apache Web Server:
                                           1. From the command line in the download directory, type:
                                                       ./apacheshut
                                               and press ENTER. The opening screen of the utility appears.
                                           2. Answer the questions as prompted by the utility. See Required Infor-
                                              mation above.
                                           3. The closing screen will show the path and filename of the shutdown
                                              script that has just been created by the Shutdown Utility for Apache
                                              Web Server. You will use this path and filename when setting up Pow-
                                              erChute plus to implement the shutdown script. The filename will be
                                              apacheshutscript.


                                                                                               continued on next page




                                                          User Guide
                                                               4
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

Using the Shutdown Utility for Apache Web Server, continued

Setting Up                             Next you must configure PowerChute plus to invoke the shutdown script cre-
PowerChute plus                        ated by the shutdown utility. For a full description of how to set up
                                       PowerChute plus to execute command files, see “FlexEvents” in the Power-
                                       Chute plus User’s Guide. Complete the following procedure to set up
                                       PowerChute plus FlexEvents for Apache Web server shutdown.
                                          1. Start PowerChute plus. Connect to the UPS.
                                          2. From the PowerChute plus Configuration menu, select Event
                                             Actions. In the Event Action dialog box, select the event that will in-
                                             voke the shutdown script you just created.
                                               Note: You can set up more than one event to trigger a shutdown of the
                                                     Apache Web server. If one event triggers a shutdown of the
                                                     Apache Web server, subsequent shutdown commands
                                                     (triggered by other events) have no effect on the Apache Web
                                                     server.
                                          3. Select Run Command File and select Options next to it. In the Run
                                             Command File dialog box, enter the path and filename of the shut-
                                             down script in the Command File line. If the line already contains a
                                             filename, follow the procedure in Multiple Shutdown Commands
                                             before proceeding with Step 4.
                                          4. Do not change Wait __ Seconds Before Executing unless you have
                                             specific reasons to do so. For further information, see the PowerChute
                                             plus User’s Guide.
                                          5. Select OK. PowerChute plus is now configured to shut down your
                                             Apache Web server automatically when the chosen condition occurs.
                                          6. Repeat Steps 2–5 for each event to be configured.
                                       Note:   If you start shutdown from FlexEvents, PowerChute plus is committed
                                               to that type of shutdown. Any subsequent event that invokes a
                                               shutdown for the server will not override a shutdown in progress.


                                                                                             continued on next page




                                                         User Guide
                                                              5
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

Using the Shutdown Utility for Apache Web Server, continued

Testing Operation                      To test the shutdown script:
                                           1. Simulate a power failure or other event that you expect to trigger the
                                              shutdown of your Apache Web server.
                                           2. Wait for the Apache Web server to shut down.
                                           3. Check for successful shutdown by using a text editor to open the
                                              Apache Web server error log. (The default for Apache HTTP Server
                                              software is /var/log/error_log.)
                                           4. When the shutdown has been successful, the following messages ap-
                                              pear at the end of the error log:
                                                       Apache Web Server Automated Shutdown
                                                       Starting:
                                                       Apache Web Server Automated Shutdown
                                                       Successful.
                                               If these messages (above) do not appear in the error log, see
                                               Troubleshooting on page 7.
                                               Note: If you have set up more than one event to use the shutdown
                                                     script, certain power events could trigger more than one of
                                                     these events. When the shutdown script has been run more than
                                                     once, the error log will show multiple entries of successful
                                                     shutdown.


Multiple Shutdown                      Each event action in FlexEvents can run only one command file. If the Run
Commands                               Command File dialog box already contains the name of an existing file, per-
                                       form the following steps.
                                           1. Do not change the current path name in the text box.
                                           2. Using a text editor, open the command file listed in the Command File
                                              dialog box.
                                           3. Append the contents of the Apache Web server shutdown script at the
                                              end of the file.
                                               Note: Placing the contents of the shutdown script after existing
                                                     commands will ensure that any existing commands are not
                                                     delayed during an automated shutdown.
                                           4. Save the file.
                                           5. Proceed with Step 4 of the procedure in Setting Up PowerChute plus
                                              on page 5.




                                                         User Guide
                                                              6
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server


After Installation


Reusing the Utility                    After you have successfully configured PowerChute plus to run apacheshut-
Files                                  script during a utility power failure, you will not normally need the shutdown
                                       utility files. However, you may want to save these files for future use.



Warning                                Do not edit the shutdown script. If you make changes to the location of
                                       Apache Web server configuration files or of the shutdown script, you must run
                                       the Shutdown Utility for Apache Web Server again to provide the updated
                                       locations. If you change the name or location of the shutdown script:
                                           •   Reconfigure PowerChute plus to run the new script.
                                           •   Delete the old shutdown script.


Troubleshooting                        If you have trouble with the Shutdown Utility for Apache Web Server, refer to
                                       the following table.

                                                                    Table 1: Troubleshooting

                                                Problem                  Possible Cause                  Solution

                                                                    The language file does       Find the language file—
                                                                    not exist in the same        by re-downloading and
                                                                    directory as apacheshut.     uncompressing, if
                                                                                                 necessary—and move it
                                        An error message                                         to the same directory as
                                        appears while you are                                    apacheshut.
                                        running the utility.
                                                                    You do not have one of       Change one of the privi-
                                                                    the privileges required      leges as described by the
                                                                    for writing the shutdown     error message.
                                                                    script.

                                        When you test the script,   The location you gave        Run the utility again and
                                        the Apache Web server       for the Apache Web           provide the correct loca-
                                        does not shut down and      server configuration files   tion of the Apache Web
                                        no shutdown entry           is not correct for the       server configuration
                                        appears at the end of the   installation of Apache       files.
                                        error log.                  HTTP Server software
                                                                    that is running.



                                                                                                  continued on next page




                                                          User Guide
                                                               7
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

After Installation, continued

Troubleshooting,
continued                                                              Table 1: Troubleshooting

                                                 Problem                    Possible Cause                   Solution

                                                                       The delay (Wait __ Sec-      Shorten the delay in the
                                                                       onds Before Executing)       Run Command File dia-
                                                                       is set too long, and the     log box or associate the
                                                                       UPS turns off its output     script file with a different
                                         The shutdown script runs      before the delay expires.    event, one that is trig-
                                         successfully when tested                                   gered sooner in the
                                         in PowerChute plus, but                                    PowerChute plus shut-
                                         does not run during an                                     down sequence.
                                         actual power outage.          The operating system         Lengthen the Shutdown
                                                                       shut down before the         Server Delay in
                                                                       Apache Web server had        PowerChute plus.
                                                                       time to complete shut-
                                                                       down.

                                         During a shutdown             The shutdown script was      There is a problem with
                                         sequence (testing or          executed, but failed to      the Apache Web server
                                         automatic), the Apache        complete. The server has     configuration. Consider
                                         Web server does not shut      stopped responding.          reconfiguring or rein-
                                         down. The error log                                        stalling the Apache Web
                                         records the starting of the                                server software.
                                         shutdown process, but         The OS shut down             Lengthen the Shutdown
                                         has no message about          before the Apache Web        Server Delay in
                                         successful shutdown and       server had time to com-      PowerChute plus.
                                         no failure message.           plete shutdown.

                                                                       The location you gave        Run the utility again and
                                                                       for the Apache Web           provide the correct loca-
                                         During a shutdown             server configuration files   tion of the Apache Web
                                         sequence (testing or          is not correct for the       server configuration
                                         automatic), the Apache        installation of Apache       files.
                                         Web server does not shut      HTTP Server software
                                         down. The error log           that is running.
                                         records the starting of the   The kill command did         Change the privileges for
                                         shutdown process and a        not complete success-        the PowerChute plus ser-
                                         failure message.              fully because Power-         vice to include root or
                                                                       Chute plus does not have     root-equivalent rights.
                                                                       the required privileges.     Retest.


                                                                                                     continued on next page




                                                             User Guide
                                                                  8
w w w. a p c c . c o m
                         PowerChute Shutdown Utility for Apache Web Server

After Installation, continued

Troubleshooting,
continued                                                           Table 1: Troubleshooting

                                                 Problem                 Possible Cause                 Solution

                                         After automated shut-      This message, generated     N/A
                                         down, the error log con-   by the Web server, indi-
                                         tains the message:         cates normal operation.
                                         “[notice] httpd: caught    Neither Apache HTTP
                                         SIGTERM, shutting          Server nor the APC
                                         down.”                     shutdown utility has
                                                                    encountered an error or
                                                                    problem.



Contacting APC                         The following table shows how to contact APC by phone or online.

                                                                    Table 2: Contacting APC

                                                       USA  Canada               1-800-800-4272

                                                       Mexico                     95 800 804 4283

                                                       Brazil                     0800-127221

                                                       Worldwide                  1-401-789-5735

                                                       Web site                   http://www.apcc.com

                                                       Online technical support   http://support.apcc.com




                                                           User Guide
                                                                9

Weitere ähnliche Inhalte

Was ist angesagt?

Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linuxSahad Sali
 
How to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatHow to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatEgnyte
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Diva23
Diva23Diva23
Diva23diva23
 
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance TipsMonitis_Inc
 
Comprehensive Information on Tomcat
Comprehensive Information on TomcatComprehensive Information on Tomcat
Comprehensive Information on TomcatHTS Hosting
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXwebhostingguy
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache TutorialGuru99
 
Apache Web server Complete Guide
Apache Web server Complete GuideApache Web server Complete Guide
Apache Web server Complete Guidewebhostingguy
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServerDrupal Jax
 
Apache web server
Apache web serverApache web server
Apache web serverzrstoppe
 

Was ist angesagt? (19)

Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linux
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
How to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatHow to monitor and manage Apache Tomcat
How to monitor and manage Apache Tomcat
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Diva23
Diva23Diva23
Diva23
 
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance Tips
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Comprehensive Information on Tomcat
Comprehensive Information on TomcatComprehensive Information on Tomcat
Comprehensive Information on Tomcat
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUX
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache Tutorial
 
Apache Web server Complete Guide
Apache Web server Complete GuideApache Web server Complete Guide
Apache Web server Complete Guide
 
Httpd.conf
Httpd.confHttpd.conf
Httpd.conf
 
Apache Ppt
Apache PptApache Ppt
Apache Ppt
 
Apache
ApacheApache
Apache
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServer
 
Apache web server
Apache web serverApache web server
Apache web server
 
Apache ppt
Apache pptApache ppt
Apache ppt
 

Ähnlich wie APC PowerChute Shutdown Utility for Apache Web Server -- User ...

How to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWareHow to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWarewebhostingguy
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-serverHARRY CHAN PUTRA
 
Introduction to Apache Web Services using latex
 Introduction to Apache Web Services using latex Introduction to Apache Web Services using latex
Introduction to Apache Web Services using latexManash Kumar Mondal
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with NginxBud Siddhisena
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...webhostingguy
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...webhostingguy
 
Connecting Apache Kafka With Mule ESB
Connecting Apache Kafka With Mule ESBConnecting Apache Kafka With Mule ESB
Connecting Apache Kafka With Mule ESBJitendra Bafna
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationChetan Soni
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04Sanjary Edu
 
Web Server Load Balancer
Web Server Load BalancerWeb Server Load Balancer
Web Server Load BalancerMobME Technical
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Apache windows
Apache windowsApache windows
Apache windowsmexxixxo
 
Load Balancing with HAproxy
Load Balancing with HAproxyLoad Balancing with HAproxy
Load Balancing with HAproxyBrendan Jennings
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaAjay Di Sharma
 
Deepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa
 
lamp technology
lamp technologylamp technology
lamp technologyDeepa
 
Apache web-server-architecture
Apache web-server-architectureApache web-server-architecture
Apache web-server-architectureIvanGeorgeArouje
 

Ähnlich wie APC PowerChute Shutdown Utility for Apache Web Server -- User ... (20)

How to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWareHow to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWare
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
 
Introduction to Apache Web Services using latex
 Introduction to Apache Web Services using latex Introduction to Apache Web Services using latex
Introduction to Apache Web Services using latex
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
 
Connecting Apache Kafka With Mule ESB
Connecting Apache Kafka With Mule ESBConnecting Apache Kafka With Mule ESB
Connecting Apache Kafka With Mule ESB
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04
 
Web Server Load Balancer
Web Server Load BalancerWeb Server Load Balancer
Web Server Load Balancer
 
slides (PPT)
slides (PPT)slides (PPT)
slides (PPT)
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Apache Web Server Setup 2
Apache Web Server Setup 2Apache Web Server Setup 2
Apache Web Server Setup 2
 
Apache windows
Apache windowsApache windows
Apache windows
 
Load Balancing with HAproxy
Load Balancing with HAproxyLoad Balancing with HAproxy
Load Balancing with HAproxy
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharma
 
Deepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa ppt about lamp technology
Deepa ppt about lamp technology
 
lamp technology
lamp technologylamp technology
lamp technology
 
Deployment automation
Deployment automationDeployment automation
Deployment automation
 
Apache web-server-architecture
Apache web-server-architectureApache web-server-architecture
Apache web-server-architecture
 

Mehr von webhostingguy

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Frameworkwebhostingguy
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guidewebhostingguy
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3webhostingguy
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serverswebhostingguy
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidationwebhostingguy
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreementwebhostingguy
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...webhostingguy
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...webhostingguy
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructurewebhostingguy
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.pptwebhostingguy
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy webhostingguy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandiserswebhostingguy
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Productswebhostingguy
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mbwebhostingguy
 

Mehr von webhostingguy (20)

File Upload
File UploadFile Upload
File Upload
 
Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guide
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web servers
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidation
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreement
 
Notes8
Notes8Notes8
Notes8
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructure
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.ppt
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandisers
 
OLUG_xen.ppt
OLUG_xen.pptOLUG_xen.ppt
OLUG_xen.ppt
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Products
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mb
 
Reseller's Guide
Reseller's GuideReseller's Guide
Reseller's Guide
 

APC PowerChute Shutdown Utility for Apache Web Server -- User ...

  • 1. 3RZHU&KXWH6KXWGRZQ8WLOLW w w w. a p c c . c o m IRU$SDFKH:HE6HUYHU Product Overview Purpose American Power Conversion (APC) has developed the APC PowerChute Shutdown Utility for Apache Web Server to configure the automatic shut- down of Apache HTTP Server software running on a UNIX operating system. Shutdown is invoked by PowerChute® plus when it detects a given condition in the attached APC uninterruptible power supply (UPS). Versions Supported The Shutdown Utility for Apache Web Server supports Apache HTTP Server releases 1.2.x and 1.3.x running on Sun® Solaris™ SPARCStations and IBM® AIX systems. Apache HTTP Server An Apache Web server—the common name for a server running Apache Software HTTP Server software—manages Web sites by storing Web pages which are then sent out in response to HTTP requests from remote browsers. Apache Web servers often work in conjunction with e-commerce packages and data- base software to manage large volumes of customer transactions. Apache Web Servers In the event of a sudden loss of power, an Apache Web server without UPS and Power Failure protection does not complete the steps it would normally take in order to close all open Web transactions and shut down. When the Apache Web server is not correctly shut down, log files may be incomplete, incorrect, or corrupted. Thus administrators can lose critical transaction data (data upload or download transactions, etc.) when the Apache Web server is stopped abnormally. A protected Apache Web server that lacks automatic shutdown capability requires the presence of the Web administrator. In the event of a power failure, the administrator must quickly send a complex “kill” command to the server in order to shut down the software before the UPS stops supplying power. continued on next page User Guide 1
  • 2. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server Product Overview, continued APC Solution to The Shutdown Utility for Apache Web Server provides a solution to the prob- Apache Web Server lem of abnormal shutdown of an Apache Web server. The utility automates Shutdown the process of creating the proper command script to be invoked by Power- Chute plus in the event of a power failure. While the APC UPS is providing battery power to your Apache Web server during a power failure, PowerChute plus (via FlexEvents) initiates the com- mand script which prevents new connections, finishes processing current transactions, shuts down the software gracefully, and logs all transactions. Features of the Utility With the Shutdown Utility for Apache Web Server you can: • Easily configure PowerChute plus to shut down your Apache Web server automatically during a power failure. • Keep a log of all unattended shutdowns. • Specify the location of the shutdown script. User Guide 2
  • 3. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server Using the Shutdown Utility for Apache Web Server Overview Setting up your Apache Web server to use the shutdown utility will require you to perform several procedures: 1. Downloading the Utility to your system, if you have not already done so. 2. Running the Utility to configure your Web server for shutdown. 3. Setting Up PowerChute plus to run the shutdown script created in Procedure 2. Downloading the To download the utility to your system: Utility 1. Go to Application Shutdown Utilities from the Free Software Upgrades page on the APC Web site. 2. Select the link entitled apacheshut.tar. 3. Create or select a download directory and filename for the file. If you give the download file a different name, you must ensure that the new name has the same tar extension. Select OK. The brief download will begin. 4. Go to the download directory. From the command line, type: tar -xvf filename where filename is the name of the file you downloaded in Step 3. Press ENTER. The command will extract 4 files: a. apacheshut—the Shutdown Utility for Apache Web Server. b. apacheshut.pdf—this user guide in portable document format (PDF). c. README—a text file with basic information on the contents of the download. d. language.txt—a file for use only by the shutdown utility. continued on next page User Guide 3
  • 4. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server Using the Shutdown Utility for Apache Web Server, continued Required Privileges To use the utility, you must have one of the following privileges: • root • root equivalent • write to file system If necessary, change your privileges to match one of the three privileges listed above. For information on how to change privileges, refer to the instructions available for your UNIX system. Required Information When you run the utility, you will be asked for two pieces of information: • Location of the Apache Web Server configuration files • Location for the shutdown script that will be created by this utility. You will be able to use the default path or enter a path of your choosing. Running the Utility To run the Shutdown Utility for Apache Web Server: 1. From the command line in the download directory, type: ./apacheshut and press ENTER. The opening screen of the utility appears. 2. Answer the questions as prompted by the utility. See Required Infor- mation above. 3. The closing screen will show the path and filename of the shutdown script that has just been created by the Shutdown Utility for Apache Web Server. You will use this path and filename when setting up Pow- erChute plus to implement the shutdown script. The filename will be apacheshutscript. continued on next page User Guide 4
  • 5. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server Using the Shutdown Utility for Apache Web Server, continued Setting Up Next you must configure PowerChute plus to invoke the shutdown script cre- PowerChute plus ated by the shutdown utility. For a full description of how to set up PowerChute plus to execute command files, see “FlexEvents” in the Power- Chute plus User’s Guide. Complete the following procedure to set up PowerChute plus FlexEvents for Apache Web server shutdown. 1. Start PowerChute plus. Connect to the UPS. 2. From the PowerChute plus Configuration menu, select Event Actions. In the Event Action dialog box, select the event that will in- voke the shutdown script you just created. Note: You can set up more than one event to trigger a shutdown of the Apache Web server. If one event triggers a shutdown of the Apache Web server, subsequent shutdown commands (triggered by other events) have no effect on the Apache Web server. 3. Select Run Command File and select Options next to it. In the Run Command File dialog box, enter the path and filename of the shut- down script in the Command File line. If the line already contains a filename, follow the procedure in Multiple Shutdown Commands before proceeding with Step 4. 4. Do not change Wait __ Seconds Before Executing unless you have specific reasons to do so. For further information, see the PowerChute plus User’s Guide. 5. Select OK. PowerChute plus is now configured to shut down your Apache Web server automatically when the chosen condition occurs. 6. Repeat Steps 2–5 for each event to be configured. Note: If you start shutdown from FlexEvents, PowerChute plus is committed to that type of shutdown. Any subsequent event that invokes a shutdown for the server will not override a shutdown in progress. continued on next page User Guide 5
  • 6. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server Using the Shutdown Utility for Apache Web Server, continued Testing Operation To test the shutdown script: 1. Simulate a power failure or other event that you expect to trigger the shutdown of your Apache Web server. 2. Wait for the Apache Web server to shut down. 3. Check for successful shutdown by using a text editor to open the Apache Web server error log. (The default for Apache HTTP Server software is /var/log/error_log.) 4. When the shutdown has been successful, the following messages ap- pear at the end of the error log: Apache Web Server Automated Shutdown Starting: Apache Web Server Automated Shutdown Successful. If these messages (above) do not appear in the error log, see Troubleshooting on page 7. Note: If you have set up more than one event to use the shutdown script, certain power events could trigger more than one of these events. When the shutdown script has been run more than once, the error log will show multiple entries of successful shutdown. Multiple Shutdown Each event action in FlexEvents can run only one command file. If the Run Commands Command File dialog box already contains the name of an existing file, per- form the following steps. 1. Do not change the current path name in the text box. 2. Using a text editor, open the command file listed in the Command File dialog box. 3. Append the contents of the Apache Web server shutdown script at the end of the file. Note: Placing the contents of the shutdown script after existing commands will ensure that any existing commands are not delayed during an automated shutdown. 4. Save the file. 5. Proceed with Step 4 of the procedure in Setting Up PowerChute plus on page 5. User Guide 6
  • 7. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server After Installation Reusing the Utility After you have successfully configured PowerChute plus to run apacheshut- Files script during a utility power failure, you will not normally need the shutdown utility files. However, you may want to save these files for future use. Warning Do not edit the shutdown script. If you make changes to the location of Apache Web server configuration files or of the shutdown script, you must run the Shutdown Utility for Apache Web Server again to provide the updated locations. If you change the name or location of the shutdown script: • Reconfigure PowerChute plus to run the new script. • Delete the old shutdown script. Troubleshooting If you have trouble with the Shutdown Utility for Apache Web Server, refer to the following table. Table 1: Troubleshooting Problem Possible Cause Solution The language file does Find the language file— not exist in the same by re-downloading and directory as apacheshut. uncompressing, if necessary—and move it An error message to the same directory as appears while you are apacheshut. running the utility. You do not have one of Change one of the privi- the privileges required leges as described by the for writing the shutdown error message. script. When you test the script, The location you gave Run the utility again and the Apache Web server for the Apache Web provide the correct loca- does not shut down and server configuration files tion of the Apache Web no shutdown entry is not correct for the server configuration appears at the end of the installation of Apache files. error log. HTTP Server software that is running. continued on next page User Guide 7
  • 8. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server After Installation, continued Troubleshooting, continued Table 1: Troubleshooting Problem Possible Cause Solution The delay (Wait __ Sec- Shorten the delay in the onds Before Executing) Run Command File dia- is set too long, and the log box or associate the UPS turns off its output script file with a different The shutdown script runs before the delay expires. event, one that is trig- successfully when tested gered sooner in the in PowerChute plus, but PowerChute plus shut- does not run during an down sequence. actual power outage. The operating system Lengthen the Shutdown shut down before the Server Delay in Apache Web server had PowerChute plus. time to complete shut- down. During a shutdown The shutdown script was There is a problem with sequence (testing or executed, but failed to the Apache Web server automatic), the Apache complete. The server has configuration. Consider Web server does not shut stopped responding. reconfiguring or rein- down. The error log stalling the Apache Web records the starting of the server software. shutdown process, but The OS shut down Lengthen the Shutdown has no message about before the Apache Web Server Delay in successful shutdown and server had time to com- PowerChute plus. no failure message. plete shutdown. The location you gave Run the utility again and for the Apache Web provide the correct loca- During a shutdown server configuration files tion of the Apache Web sequence (testing or is not correct for the server configuration automatic), the Apache installation of Apache files. Web server does not shut HTTP Server software down. The error log that is running. records the starting of the The kill command did Change the privileges for shutdown process and a not complete success- the PowerChute plus ser- failure message. fully because Power- vice to include root or Chute plus does not have root-equivalent rights. the required privileges. Retest. continued on next page User Guide 8
  • 9. w w w. a p c c . c o m PowerChute Shutdown Utility for Apache Web Server After Installation, continued Troubleshooting, continued Table 1: Troubleshooting Problem Possible Cause Solution After automated shut- This message, generated N/A down, the error log con- by the Web server, indi- tains the message: cates normal operation. “[notice] httpd: caught Neither Apache HTTP SIGTERM, shutting Server nor the APC down.” shutdown utility has encountered an error or problem. Contacting APC The following table shows how to contact APC by phone or online. Table 2: Contacting APC USA Canada 1-800-800-4272 Mexico 95 800 804 4283 Brazil 0800-127221 Worldwide 1-401-789-5735 Web site http://www.apcc.com Online technical support http://support.apcc.com User Guide 9