Installing Apache in a WPAR

Installing Apache allows you to take advantage of the portability and scalability of WPARs.

Before you install Apache, you must download the Apache RPM and the following dependencies:
  • expat
  • lynx
You can download all of these RPM files from the following website: http://www.ibm.com/servers/aix/products/aixos/linux/download.html
To install Apache, complete the following steps.
  1. Install the Apache RPM file and its dependencies in the global environment by using the rpm command.
    Many of the installation images are installed in the /opt directory and the /usr directory. Because these directories are shared by the global environment and all shared WPARs, it is not necessary to install Apache separately on all WPARs.
  2. Make Apache available to other WPARs.
    • If the WPAR where you want to run Apache does not exist, create it using the mkwpar command or SMIT.
    • If the WPAR where you want to run Apache does exist, make the installation of Apache available to the WPAR using the syncwpar command or SMIT.
  3. Configure Apache in the WPARs where you want Apache to run.
    At a minimum, you can modify the DocumentRoot variable in the /etc/opt/freeware/Apache/httpd.conf file to a directory that contains the files you want to serve.
  4. Start Apache in every WPAR where you want it to run.