Skip to Content
Author's profile photo Former Member

Installing Apache server on Unix for content server

Apache 2.2.x.x new version is now supported by SAP content server.

i have used apache-2.0.59 for this blog . You can install 2.2.x.x .

Various version of apache are available for download on www.sunfreeware.com/ Chose any one  version.

h3.  Pre-steps:- 

Create the below users: 

sapcs : User for Content Server. Keep the Home Directory as /home/sapcs

sapcsc : User for Cache Server. Keep the Home Directory as /home/sapcsc

h3. Installation:-

Below is the he description for Installation of apache server (for Content server)

i.e. User sapcs.

If you want to Install Cache server (optional). You will have to install the apache server in the same manner for user sapcsc.

There are two ways to install Apache server.

*1.         Install using source distribution         </p><p>2.         Install using Precompiled Packages*

Download the Package appropriate for your Unix flavor and version. Here I am giving example of Solaris 10 with apache version 2.0.59

h3. Installation Method 1:  Using source distribution

1. Download Source Code

                httpd-2.0.59.tar.gz  or Apache 1.3.xx

2. Copy it to the directory where you have Install. i.e /home/sapcs

3. Unzip it. This will create a tar file in the same directory

            +  sapcs$ gunzip httpd-2.0.59.tar.gz</p><p> +

4. Untar it . This will create directory http-2.0.59 with source code in it.

       +     sapcs$ Tar –xvf httpd-2.0.59.tar.gz</p><p> +

5. Compiling and creating binaries

Important Tips:

*- If your OS is 64 bit then make sure you use a 64 bit gcc  complier and gcc Library for all of the below steps. Or else it will give error during loading Content server Modules after Content Server Installation is Complete. </p><p>Before compilation you need to set FLAGS variable depending on your OS. Refer Note 664384 – Generation info for Apache Web server for SAP Content Server </p><p> </p><p>5.1 Compilation for Apache 1.3.xx</p><p>sapcs$ cd /home/sapcs/apache1.3.xx</p><p>sapcs$ configure –-prefix=/usr/users/dmscs –-enable-shared=max –enable-module=most </p><p>sapcs$make</p><p>sapcs$make install</p><p> </p><p>5.2 Compilation for Apache 2.0.xx*

sapcs$ cd /home/sapcs/ httpd-2.0.59

sapcs$ configure –prefix=/usr/users/dmscs –enable-mods-shared=most –with-mpm=prefork

Sapcs$make

Sapcs$make install

h3. Installation Method 2: Using Precompiled Packages

Important Tip:

– Make sure that the Packages that you download are 64 bit binaries if you OS is 64 bit. Or else it will give error during loading Content server Modules after Content Server Installation is Complete.

1. Donwload Package

apache-2.0.59-sol10-sparc-local.gz

Cation: All the packages available on www.sunfreeware.com/ are 32 bit complied binaries. This can be used only if you OS is 32 Bit. 

2. Unzip the package with below command

           +gunzip apache-2.0.59-sol10-sparc-local.gz </p><p> +

3. Install using below command

      +      Pkgadd –d apache-2.0.59-sol10-sparc-local.gz+

This will install the apache server on /usr/local/apache2. This is called the apache base directory.

4. Now move the conf directory to the home directory of the  Content server User.

            + mv /usr/local/apache2/conf /home/sapcs/</p><p> +

5. Make a link from base directory to moved directory.

              cd /usr/local/apache2

+              ln –s /usr/local/apache2/conf conf+

h3. Starting Apache Server

+         /home/sapcs/apache/bin/apachectl restart+

h3. *Stop Apache Server *

+          /home/sapcs/apache/bin/apachectl restart+

h3. *Restarting Apache Server *

+          /home/sapcs/apache/bin/apachectl restart+

Other Important Tips :

– Make sure that PATH variable are set to gcc complier. Make sure complier is 64 bit or 32 bit as per your OS

– Make sure that   LD_LIBRARY_PATH variable are set to gcc library. Make sure gcclib is 64 bit or 32 bit as per your OS.

– To check if file 64 bit or 32 bit use the below command.

               sapcs$ file <file_name>

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Diego Santos
      Diego Santos

      Hi Hussain,

      Please update your document.
      Apache 2.2.x.x is already supported.
      https://service.sap.com/sap/support/notes/664384 - Generation info for Apache Web server for SAP Content Server

      Regards,
      Diego