Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Apache 1.3 Configuration

Posted on 2003-11-10
Medium Priority
Last Modified: 2013-12-11
am trying to get my apache server to forward requests to websphere.  I have looked at all the config manuals/faqs and havn't come across this problem.

Redhat Linux 7.3
Apache 1.3
WebSphere Express 5

I have done the following.

1.  Create a virtual host in websphere that listens on *:8082
2.  Installed my application in the websphere instance and assigned the *:8082 virtual host to all the modules
3.  Regenerate my websphere plugin
4.  Added these lines to my httpd.conf:
        LoadModule app_server_http_module /opt/IBM/WebSphere/Express502/Plugins/bin/mod_app_server_http_eapi.so
        WebSpherePluginConfig /opt/IBM/WebSphere/Express502/AppServer/config/cells/plugin-cfg.xml

Now when I start apache I get the following in the error_log:

[Mon Nov 10 15:29:10 2003] [notice] Initializing the WebSphere Plugin

The server never starts up and I cannot find an error message telling me what could be wrong.  I changed the LogLevel to 'debug' in the http conf and that doesn't see to add anything at all.

Please help me hunt down/solve this error.  Any and all help is much appreciated
Question by:Jim_McLean
  • 2
  • 2

Expert Comment

ID: 9718089
you could try using strace command line utility to listen to the apache process while it is starting up.... might give you some clues

there's a tutorial here ...


Expert Comment

ID: 9718173
Additionally although it could be completely inconsequential is that in the docs at...


there is no space character in the httpd.conf at line
LoadModule app_server_http_module/opt/WebSphere/AppServer/bin/mod_app_server_http_eapi.so

whereas you have a space after app_server_http_module e.g.
LoadModule app_server_http_module<SPACE>/opt/WebSphere/AppServer/bin/mod_app_server_http_eapi.so

could just be a typo from either you or the docs tho ... :o$

Author Comment

ID: 9722078
This is what I got from running strace:

13052 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
13052 read(5, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 1267
13052 close(5)                          = 0
13052 munmap(0x40015000, 4096)          = 0
13052 write(2, "[Tue Nov 11 08:45:51 2003] [warn"..., 117) = 117
13052 write(2, "\n", 1)                 = 1
13052 umask(022)                        = 022
13052 umask(022)                        = 022
13052 open("/var/run/httpd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
13052 umask(022)                        = 022
13052 fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
13052 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
13052 write(5, "13052\n", 6)            = 6
13052 close(5)                          = 0
13052 munmap(0x40015000, 4096)          = 0
13052 time(NULL)                        = 1068558351
13052 write(15, "[Tue Nov 11 08:45:51 2003] [noti"..., 70) = 70
13052 stat64("/opt/IBM/WebSphere/Express502/AppServer/config/cells/plugin-cfg.xml", {st_mode=S_IFREG|0644, st_size=4119, ...}) = 0
13052 open("/opt/IBM/WebSphere/Express502/AppServer/config/cells/plugin-cfg.xml", O_RDONLY) = 5
13052 fstat64(5, {st_mode=S_IFREG|0644, st_size=4119, ...}) = 0
13052 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
13052 read(5, "<?xml version=\"1.0\" encoding=\"IS"..., 4096) = 4096
13052 --- SIGSEGV (Segmentation fault) ---

looks like it's faulting on reading the plugin-cfg.xml...  any thoughts?

Accepted Solution

dyanet earned 1500 total points
ID: 9736218
The WebSphere virtual host port number (*:8082 that you defined) should be the port number that Apache listens on.  

So, unless your Apache is listening on port 8082, the WebSphere virtual host should be *:80  
    -- 8082 etc. are the default transport port numbers for the app servers within websphere.  They should be transparent to you -- they are output into the cfg.xml file and the plugin reads them and knows which port to talk to Websphere on.

In short, your WebSphere port number is the same as the Apache host port number.

This might not solve your problem.  Please attache your httpd.conf file.  Module Ordering and location of the websphere plugin may be the issue for the segfault.

Author Comment

ID: 9764168
I figured out my problem...  I only had 1 HTTP transport defined and this was used by the adminconsole virtual host.  I created an spare HTTP transport that wasn't used in any WAS virtual hosts and regenerated my plugin.  WAS now has a HTTP transport to communicate with Apache and it works fine now.  I wish IBM would have spelled out this a bit better in their documentation, but it works now.

Thanks for pointing me in that direction...

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Integration Management Part 2
Suggested Courses
Course of the Month15 days, 21 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question