mod_was_ap22_http.so is not available on Websphere 9? - websphere

I'm trying to integrate IBM Http Server to WAS on windows server. Webspher, IHS, Plugins, all installed on same server by installation manager, all of them are version 9 and 64bit.
Then I follow the steps on this(https://geekflare.com/integrate-http-server-with-websphere-8-5/) to start my integration, but something when wrong: I cannot find mod_was_ap22_http.so in my plugin folder. I when to check the folder X:\IBM\WebSphere\Plugins\bin\64bits and D:\IBM\WebSphere\Plugins\bin\32bits, I see mod_was_ap24_http.dll and mod_was_ap22_http.dll but not the .so that I need. I also tried to use mod_was_ap24_http.dll in my httpd.conf file but it's not working, then I got the following error
The IBMHTTPServer9 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Syntax error on line 116 of X:/IBM/HTTPServer/conf/httpd.conf: Cannot loa
d X:/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap24_http.dll into server: %1 \xa4
\xa3\xacO\xa6\xb3\xae\xc4\xaa\xba Win32 \xc0\xb3\xa5\xce\xb5{\xa6\xa1\xa1C
Is there something that I'm not doing right?

The guide is written for Linux and you're on Windows. Further, the guide has typos in configuration files. I'd suggest following the official docs and running PCT/WCT instead of manually configuring all of this.

Just add mentioned module:
[root#172 bin]# locate mod_was_ap22_http.so
Go to location:
/opt/IBM/HTTPServer/conf
vim http.conf
(add mentioned below module)
LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
./apachectl -k start

Related

Apache remains stopped in Ampps windows 10

To use an open source software on GitHub it was recommended to use Ampps.
I installed Ampps on Windows 10. Then installed Apache, MySQL, and PHP 7.1.
I can open Ammps and start MySQL but Apache remains stopped.
I tried to run \Ampps\apache\bin\httpd.exe in the command prompt and recieved this error:
AH00526: Syntax error on line 144 of C:/Program Files/Ampps/apache/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file 'C:/Program Files/Ampps/apache/conf/ssl_crt/server.crt' does not exist or is empty
It's right, I can't find any ssl_crt folders in conf, let alone server.crf file.
I'd like to know why this file is missing.
Is there any issues with my installation process?
How can I solve this problem?
Many thanks
After many inspections, I found that the problem was with my laptop lacking IIS URL Rewrite Module2.
I installed IIS URL Rewrite Module2, changed Apache's configuration to listen to port 8080 instead of 80, and everything worked like a charm.

Automate WebSphere plugins configuration: Not resolved ${WAS_PLUGIN_DRIVER} variable in httpd.conf

I'm working on an automated deployment of HCL Connections 6.5 using Ansible on CentOS 7. It already includes IBM IM, WAS (Dmgr + Node), DB2 and Connections itself. The HTTP Server (IHS) is installed, but now I need to configure it. I need to configure the WebSphere Plugin using WCT.
For education purpose, I did this in the past on another testserver using GUI mode like this:
cd /opt/IBM/WebSphere/Toolbox/WCT
./wct.sh
Now we get an wizard with several steps that asks for the plugin location, webserver definition name, port of the HTTP Server and so on.
Automate the wizard
I found wctcmd.sh
as CLI equivalent of wtc.sh to configure webservers automatically. So I made the following response file
configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=password
ihsAdminPort=8008
ihsAdminUnixUserGroup=ihsadmin
ihsAdminUnixUserID=ihsadmin
mapWebServerToApplications=true
wasMachineHostname=cnx65.internal
webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=cnx65.internal
webServerOS=operating_system_value
webServerPortNumber=80
webServerSelected=ihs
and ran wctcmd.sh like this:
cd /opt/IBM/WebSphere/Toolbox/WCT
./wctcmd.sh -tool pct -createDefinition -defLocPathname /opt/IBM/WebSphere/Plugins -response resp-file
It says that the tool was executed successfully. But when I open the webserver config /opt/IBM/HTTPServer/conf/httpd.conf it has added the following two lines:
LoadModule was_ap22_module ${WAS_PLUGIN_DRIVER}
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
This variable is not defined and raise an error when starting the webserver:
# /opt/IBM/HTTPServer/bin/apachectl start
httpd: Syntax error on line 915 of /opt/IBM/HTTPServer/conf/httpd.conf: Cannot load ${WAS_PLUGIN_DRIVER} into server: ${WAS_PLUGIN_DRIVER}: cannot open shared object file: No such file or directory
I assume that the presence of ${WAS_PLUGIN_DRIVER} indicates something went wrong with wctcmd.sh because I looked at another test server with Connections 6 installed manually (with GUI) and the manually installed server has no variable there:
LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
A consultant with over 10 years of experience in WebSphere/Connections confirmed that LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so is correct when everything worked correctly, so there should be no variable.
Questions
Why does the tool place the ${WAS_PLUGIN_DRIVER} variable in my http config without resolving them?
What am I doing wrong that this occurs?
Figured out that I misinterpreted the operating_system_value value for webServerOS. I thought the script would detect the OS automatically, but the docs say
The valid values for the webServerOS parameter, which is used to specify the web server operating system, are Windows, Linux, Solaris, AIX, HPUX, OS390, and OS400.
I also set webServerType=IHS. Now it generates the following working configuration:
LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml

installation and configuration of james server on local host

i tried google, youtube for some kind of demo's or instructions .. but couldn't find any..
i tried going through the james server's website and i also tried some article on ibm
http://www.ibm.com/developerworks/java/library/j-james1/index.html
but everything in vain..
i am new to these things and i am trying to host a mail server on my machine to send mails using php code..
i downloaded a source package of stable version of james from
http://james.apache.org/download.cgi#Apache_James_2.3.2_is_the_stable_version
the instructions i found told me to redirect to james/bin and run a file called run.bat
but when i run it all i get is
using phoenix home
using phoenix tmpdir
using java home
and then
shutting sown
phoenix 4.2
i am installing it on windows 7
can someone help me out with it please..
According to described symptoms I suppose that you downloaded wrong version (smth like as james-x.x.x-src.zip).
In your case (windows 7) you need other one james-binary-x.x.x.zip
james-binary-x.x.x.zip has the same easy installation. Just unzip files under any directory. launch [INSTALLDIR]\bin\run.bat

asp.net not running on Apache 2 on OSX Lion - Getting a Forbidden 403 response

As of the current time of writing (2012-03-05) I'm running the following components:
OSX Lion
Default Apache installation (Apache2)
SSLEngine on Apache is "on" (doing some dev, but not trying to access .net through ssl yet)
Mono 2.10.8
xsp 2.10.2
mod_mono 2.10
I'm an Win/IIS guy so this is all new to me, but trying to get the xsp test ASP.NET app running on my mac (the app is in the xsp folder and is referenced in the mod_mono install guide).
I've run through the INSTALL guide for xsp and mod_mono.
As far as I can tell everything is running. Appache seems to have loaded the mono module, as it's ok with the mono configuration elements in it's httpd.cong file.
However, when I try to browse to an ASP.NET page, for example, the xsp test one (http://127.0.0.1/demo/index.aspx), I get:
Forbidden
You don't have permission to access /demo/index.aspx on this server.
Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 mod_mono/2.10 Server at 127.0.0.1 Port 80
The mono_mod troubleshooting guides say this might happen if Apache doesn't have read acess, but read access on the xsp test folder is set to:
everyone: Read & Write
I'm thinking it's not a directory permissions issue?
I wonder if the mono mod isn't running properly so actually Apache is trying to do a directory listing, which would give a 403?
What could be causing this? And is there any way to diagnose if all the mono mod stuff is installed and running correctly with Apache?
thanks
A script might also require execute permission, try from the command line:
chmod +x /path/to/script.aspx
This let's OS X (and other unixes) know that the file can be run.

Can't start glassfish v3 on windows 7

I have glassfish v3 on windows 7 installed, but it won't start on 8080. I get typical dead page when I go to 8080 like you would expect if it's not running.
I tried to start it manually.
C:\glassfish3\bin
asadmin start-domain and what i get is "system cannot find the path specified"
I searched hi and low for an answer but most questions involve glassfish not starting because the port is not free. however that's not my issue.
I've tried reinstalling about a half dozen times and even rebooting. nothing changes
An alternative answer:
Download the zip version here:
http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip
Unzip this to c:\glassfish3
This command will work:
C:\glassfish3\bin\asadmin.bat start-domain domain1
Its a configuration issue, when you try to install glassfish server from the installer sans bundled jdk,simply go to "\glassfish3\glassfish\config", set AS_JAVA to jdk home dir in asenv.bat file, re-run the installation, chose custom installation and "configure an existing installation" and you are done.
For more info:http://java.net/jira/browse/GLASSFISH-16155.
It looks like you forgot a slash in your command. The error your getting isn't a glassfish error, it's a DOS error.
try:
C:\glassfish3\bin\asadmin.bat start-domain domain1
or
C:\glassfish3\bin\asadmin start-domain domain1
Hi I was facing the same issue. I am able to resolve the same issue by following below steps:
Go to \glassfish\config (Note: In my case it is c:\glassfish3\glassfish\config)
Now open asenv.bat in notepad.
Make the value of AS_JAVA same as JAVA_HOME environment variable.
Now open command prompt and go to the bin folder and run asadmin start-domain domain1.
If you are getting error that no domain exist then create new domain by following below link:
http://docs.oracle.com/cd/E19776-01/820-4497/create-domain-1/index.html

Resources