Previous Page: Installing Apache on a Linux Server  Next Page: Installing the Tomcat Web Application Server/Servlet Engine

Installing Apache on a Solaris Server

NOTE:  If you selected Web Server during the installation of your Solaris server, Apache is already installed.

To install Apache version 1.3.20 Web server software on a Solaris server platform:

  1. To set your path in the /etc/profile for JDK 1.3:

    1. Open a terminal window.

    2. Change directories to /etc.

    3. Enter the following command to edit the profile file:

      vi profile

    4. Add the following line to the file:

      PATH=/user/j2se/bin:$PATH

      NOTE:  The exact path specified will depend on where the JDK was extracted.

    5. To close and save the file, press Esc + Enter > type :wq > press Enter.

  2. Copy the apache_1.3.20-sun4u-sun-solaris2.280.tar.gz file to a temporary directory on your Solaris server.

  3. To extract the files to your server:

    1. Open a terminal window.

    2. Change directories to the temporary directory containing the tar file.

    3. Enter the following command to extract the file:

      tar -xvzf apache_1.3.20-sun4u-sun-solaris2.280.tar.gz

  4. From the root of this distribution, enter the following command to run the install script:

    install-bindist.sh

    Run as root user.

  5. Edit the ServerRoot and ServerName directives in the http.conf file to match your server configuration.

    For example:

    ServerName 137.65.151.164

    ServerRoot etc/httpd

  6. For Apache/Tomcat integration, add a statement to the end of the http.conf file to include the Tomcat mod_jk.conf-auto file.

    For example:

    include etc/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto

    IMPORTANT:  Use forward slashes (/) in the path.

  7. Install the Tomcat Web application server by following the instructions in Installing Tomcat on a Solaris Server.

    IMPORTANT:  After installing and running Tomcat at least once, make sure the mod_jk.conf-auto file exists in the location you specified in Step 6.

  8. Open a terminal window and enter httpd start to start Apache.



  Previous Page: Installing Apache on a Linux Server  Next Page: Installing the Tomcat Web Application Server/Servlet Engine