Installing Apache allows you to take advantage of the portability
and scalability of WPARs.
To install Apache, complete the following steps.
- 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.
- 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.
- 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.
- Start Apache in every WPAR where you want it to
run.