Skip to Content

Hello Everyone,

these days I went ahead and added an Apache Web Server to a test BI4.1 Installation as per the proposal made by James Rapp. I was particularly eager in seeing how much effort would it take to do this for a standard 1-box BI4 installation. Here I am sharing screenshots of that process in order to give you a highlevel overview. This blog is not intended to give you instructions on how to split deploy with Apache. For the correspondent instructions please visit following Documents:

I am on Windows Server 2012, BI4.1 SP02 Installation with Tomcat7, Downloading Apache 2.4.7 and mod_jk 1.2.37. Furthermore I am also using the httpd-bi41.conf and workers.properties file shared in the documents by James and Ian in the articles above.

After Downloading the Apache files, I extracted it to the root folder (in this case Z) just to make less changes to paths later on in the configuration files (C:\->Z:\):

/wp-content/uploads/2014/01/1_376453.jpg

From the module mod_jk, which comes as a separate .zip file, copy the file mod_jk.so file from modules-2.4-win64-VC11.zip to \Apache24\Modules:

/wp-content/uploads/2014/01/2_376493.jpg

In the httpd.conf file, adjust the corresponding lines for the ServerAdmin and ServerName. Because my Apache root is not C\Apache24, I also need to adjust ServerRoot and DocumentRoot in this file:

/wp-content/uploads/2014/01/3_376494.jpg

Before starting with the installation of Apache Web Server, make sure that no one else is listening on port 80, this is the port that Apache will listen to in standard. With following command you can check which process is currently listening to which port:

/wp-content/uploads/2014/01/4_376495.jpg

In case you would see another program listening to port 80, you could identify it by the process ID being shown to the right of the last screen. This Process ID can be useful in the task manager to get to the corresponding program.

Open a command window in \Apache24\bin. Now we are ready to install Apache Web Server in form of a windows Service with the name BOEXI40Apache. Services starting with the name BOEXI40 will automatically appear in the CCM:

/wp-content/uploads/2014/01/6_376557.jpg

Ok, the installation says there is something wrong, but no explanation and no logs, so I go ahead and try to start Apache from the CCM, Seems I can start it without any issue:

/wp-content/uploads/2014/01/7_376558.jpg

Test to kindly ask Apache if it really works?

/wp-content/uploads/2014/01/8_376510.jpg

Note that the port number is missing, that is because the standard port is 80

To make things fancy, I keep following James’ proposal and change the display name of the service from BOXI40Apache to Apache HTTPD 2.4.7:

/wp-content/uploads/2014/01/9_376525.jpg

The CCM looks more organized now with the new name for Apache:

/wp-content/uploads/2014/01/10_376556.jpg

As we are still going to be using tomcat for the dynamic content, I add tomcat as a dependency to Apache in the CCM, this way tomcat will be automatically started when we start apache. Similarly, tomcat cannot be stopped while Apache is running:

/wp-content/uploads/2014/01/7b_376549.jpg

Adjusting now the config.apache file of WDeploy with the ws_dir and connector_type:

/wp-content/uploads/2014/01/11_376536.jpg

Also adjusting the config.tomcat7 file with as_dir, as_instance and as_service_name:

/wp-content/uploads/2014/01/12_376537.jpg

Copying the downloaded httpd-bi41.conf  file to \Apache24\conf\extra and copying the workers.properties file to Apache24\Conf:

/wp-content/uploads/2014/01/14_376539.jpg

After making a backup of the server.xml file, adjusting it now and uncomment the AJP connector line by deleting the <!–  characters at start and –> at the end of the line:

/wp-content/uploads/2014/01/15_376540.jpg

Restarting Apache now by using CCM or windows services. Looks good as the service can be started. Afterwards, update the CacheRoot and CacheLockPath in the downloaded httpd-bi41.conf file:

/wp-content/uploads/2014/01/16_376544.jpg

Create the corresponding folders of the last screen if needed.  Creating now a task with the windows task scheduler to clean the cache:

16_Task1.jpg

Enter a name for the Task, run whether the user is logged on or not, Do not store password:

Task.jpg

Trigger at startup:

16_Task3.jpg

Setting a new action with corresponding arguments:

16_Task4a.jpg

Adding now an Include line to the httpd.conf file in order to load the httpd-bi41.conf file:

16_Z.jpg

Then checking if the Apache server can be restarted. It does correctly, so im stopping it now.

Now its time to start predeploying:

wdeploy tomcat7 -Das_mode=split -Dws_type=apache -Dwork_dir=Z:\temp predeployall

After a successful deployment, I see a corresponding message:

/wp-content/uploads/2014/01/17_376608.jpg

Creating an empty MOBIServer.zip file in the predeployed content:

/wp-content/uploads/2014/01/18_376609.jpg

And now its time to split deploy!

wdeploy tomcat7 -Das_mode=split -Dws_type=apache -Dwork_dir=Z:\temp deployonlyall

SplitDeploy.jpg

Running now post-installation checks. Around 100k files as static content in the BOE directory? -> Check!

/wp-content/uploads/2014/01/20_376613.jpg

Were some extra Include conf/bobj* added to the httpd.conf file? -> Check!

/wp-content/uploads/2014/01/19_376617.jpg

bobj* Files were added to Apache24/conf? -> Check!

/wp-content/uploads/2014/01/21_376615.jpg

Is public,max-age=315360000 (or whatever value you configured in mod_headers) being inserted by mod_headers from the httpd-bi41.conf file? -> Check!

/wp-content/uploads/2014/01/22_376616.jpg

Victor

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. PRASAD JRK

    Great Article, which will explain how to integrate an HTTP server.


    Thank you James Rapp and Victor Gabriel Saiz Castillo for your extraordinary efforts to share your IDEAS and documents in SCN.


    Thank you SCN for sharing the valuable information.

    One thing i would like to request, it will be great if someone creates detailed document to configure Apache as LB.

    (0) 

Leave a Reply