Before you Begin
Ensure the following:
- If you are not familiar with installing and configuring Apache, please refer to the Apache documentation
- Apache should not be running at the time you attempt to protect it with LifeKeeper.
- Install Apache.
a. This example assumes that you are running a RHEL or CentOS 5.X based Linux distribution. For other Linux distros, please refer to your apache documentation for syntax differences.
b. If the Apache and PHP packages are not already installed, from the command line, , run: “yum install httpd php”
c. A number of dependencies will most likely be discovered. Install those as well.
- Apache should be configured so that it will not automatically start when the server boots. LifeKeeper will control the start/stop of the webserver once its protected
a. Check the status of the webserver: “/etc/init.d/httpd status
b. If running, please stop of: /etc/init.d/httpd stop
c. Disable automatic startup: chkconfig httpd off
- Apache Configuration. In this example, we will assume default Apache settings and directory locations, specifically:
a. Validate the following settings in /etc/httpd/conf/httpd.conf:
i. ServerRoot “/etc/httpd”
ii. DocumentRoot “/var/www/html”
iii. Listen 192.168.197.150:80 (note 192.168.197.150 is the Apache Switchable IP we will configure later in the LifeKeeper user interface)
b. Edit the Listen parameter in the /etc/httpd/conf.d/ssl.conf configuration file
i. Listen 192.168.197.150:443
- Create a sample Index page:
a. vi /var/www/html/index.php
b. Insert the following single line of code into this file:
<? phpinfo(); ?>
- Install Apache/PHP exactly as you did on the primary server, making all of the same configuration changes.
- There is no need to perform Step #4 in which you create a sample index page. All data in /var/www will be replicated from LinuxPrimary to LinuxSecondary
- Stop all Apache services on the secondary server