Patrick-Dussault

Apache 2.4.2 :: SunOS 5.10 x86_64 : Install Quick Steps

Blog Post created by Patrick-Dussault Employee on May 5, 2016

For the ones who might get interested in, here are the quick steps to install Apache 2.4.2 64bit on SunOS 5.10 x86_64 with Web Agent 12SP3CR10 64bit :

 

 

Installing Apache 2.4.2 on SunOS 5.10 x86 64 bit

------------------------------------------------

 

Set the Environment variables, -m64 to compile in 64bit

Installation has been done under root profile :

-------------------------------------------------------------------

 

# export PATH=/usr/ccs/bin:/usr/sfw/bin:$PATH

# export CC=gcc

# export CFLAGS=-m64

# export CPP_FLAGS=-m64

 

Get the packages :

----------------

 

# cd /export/home/smuser/download/

# wget http://apache.mirrorcatalogs.com//apr/apr-1.4.6.tar.gz

# wget http://apache.mirrorcatalogs.com//apr/apr-util-1.4.1.tar.gz

# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz

# wget http://apache.tradebit.com/pub//httpd/httpd-2.4.2.tar.gz

 

Uncompress the packages and check the result :

--------------------------------------------

 

# for i in `ls *.gz`; do gunzip $i; done; ls -ltr; for j in `ls *.tar`; do tar -xvf $j; done; ls -ltr

# for i in apr-util-1.4.1 pcre-8.30 apr-1.4.6 httpd-2.4.2; do chown -R root:root $i; done; ls -ltr

 

Check if gcc is present and executable :

--------------------------------------

 

# ls /usr/sfw/bin/gcc

 

If the package is not installed, then install it after having mounted the DVD. In this sample, DVD is

installed in /cdrom

 

# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWbinutils SUNWgccruntime SUNWgcc

 

Compile PCRE :

------------

 

# cd pcre-8.30

# ./configure --prefix=/export/home/smuser/sandbox/pcre --disable-cpp

# make

# make install

 

Move source of APR to the Apache source files :

---------------------------------------------

 

# cd /export/home/smuser/download/

# mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util

# mv apr-1.4.6 httpd-2.4.2/srclib/apr

 

Compile Apache :

--------------

 

# cd httpd-2.4.2

# export LIBS=-lpthread

# ./configure --enable-module=so --prefix=/export/home/smuser/sandbox/apache2.4 --with-included-apr --with-pcre=/export/home/smuser/sandbox/pcre

# make

# make install

 

Then you test it :

----------------

 

# /export/home/smuser/sandbox/apache2.4/bin/apachectl start

 

Open a browser and try to reach the machine on port 80

 

 

Install the Web Agent :

----------------------

 

# cd /export/home/smuser/download

# chmod 755 ca-wa-12.0-sp3-cr010-sol-x86-64.bin

# ./ca-wa-12.0-sp3-cr010-sol-x86-64.bin -i console

ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT

      : /export/home/smuser/sandbox/CA/webagent

 

Configure the Web Agent :

----------------------

 

# cd ../sandbox/CA/webagent/

# source ca_wa_env.sh

# ./ca-wa-config.sh -i console

 

give all details as usual in order to configure the Web Agent.

Outcomes