1- Download Apache Software
http://httpd.apache.org
2-Install Apache op Linux
cd /usr/local/src
# gzip -d httpd-2.2.9.tar.gz
# tar xvf httpd-2.2.9.tar
cd httpd-2.2.9
# ./configure --help
3- In the following example, Apache will be compiled and installed to the default location
/usr/local/apache2 with the DSO capability. Using the –enable-so option, you can load modules
to Apache at runtime via the Dynamic Shared Object (DSO) mechanism, rather than requiring a recompilation.
4-# ./configure --enable-so
5- # make
6- # make install
Note: During the ./configure, you may get the following error message.
7- # ./configure --enable-so
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/aprInstall the gcc and the dependent modules as shown below and try ./configure again to fix the above issue.
# rpm -ivh gcc-4.1.2-14.el5.i386.rpm glibc-devel-2.5-18.i386.rpm glibc-headers-2.5-18.i38
6.rpm kernel-headers-2.6.18-53.el5.i386.rpm
Preparing... ########################################### [100%]
1:kernel-headers ########################################### [ 25%]
2:glibc-headers ########################################### [ 50%]
3:glibc-devel ########################################### [ 75%]
4:gcc ########################################### [100%]
Start Apache and verify installation
8- # cd /usr/local/apache2/bin
9- # ./apachectl start
Go to http://local-host, which should display the default message “It Works!”
10- Dowload WLSPlugin from http://Metalink.oracle.com
11- unzip WLSPlugin1.1-64bitApache2.2-linux64-x86_64.zip
for example /BEA_HOME/WLSPlugin1 or anyother directory
12- make sure the mod_wl_220.so library in you Plg-in lib directory
13 - Verify that mod_so.c is enabled by executing the following command:
#APACHE_HOME\bin\apachectl -l . the result must be like that
/apachectl -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_version.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
This command lists all enabled modules. If mod_so.c is not listed, you must rebuild your Apache HTTP Server,
making sure that the following options are configured:
..
--enable-module=so
--enable-rule=SHARED_CORE
Configuring the apache plug-in
14- Make copy of httpd.conf file
15- Add the http.conf file
# vi http.conf
- Add the following lines to the http.conf file
LoadModule weblogic_module /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/lib/mod_wl.so
WebLogicHost (your weblogic host name)
WebLogicCluster (your host name:port number, host name:port number)
Ex.
WebLogicCLuster myhost:7003,myhost:7004
Debug ALL
DebugConfigInfo ON
WLLogFile /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/wl-proxy.log
ex
SetHandler weblogic-handler
Using virtual host in place of Load Moduel
We can add the followin lines if we want to use virtual host in place of load moduel
SetHandler weblogic-handler
WebLogicCluster Hostname:7003,HostName:7004
SetHandler weblogic-handler
WebLogicHost YOUR HOST NAME
WebLogicPort 7002
16- Ensure that the ${PLUGIN_HOME}/lib is included in the LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH=/home/myhome/weblogic-plugin-1.1/lib
other options include copying the 'lib' contents to APACHE_HOME/lib or
editing the APACHE_HOME/bin/apachectl to update the LD_LIBRARY_PATH
18- Start the apache server
$ ${APACHE_HOME}/bin/apachectl start
19- Start Admin Server and Managed Servers
17- Check your Application URL
example: http://Myhost/mywebapp
http://httpd.apache.org
2-Install Apache op Linux
cd /usr/local/src
# gzip -d httpd-2.2.9.tar.gz
# tar xvf httpd-2.2.9.tar
cd httpd-2.2.9
# ./configure --help
3- In the following example, Apache will be compiled and installed to the default location
/usr/local/apache2 with the DSO capability. Using the –enable-so option, you can load modules
to Apache at runtime via the Dynamic Shared Object (DSO) mechanism, rather than requiring a recompilation.
4-# ./configure --enable-so
5- # make
6- # make install
Note: During the ./configure, you may get the following error message.
7- # ./configure --enable-so
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/aprInstall the gcc and the dependent modules as shown below and try ./configure again to fix the above issue.
# rpm -ivh gcc-4.1.2-14.el5.i386.rpm glibc-devel-2.5-18.i386.rpm glibc-headers-2.5-18.i38
6.rpm kernel-headers-2.6.18-53.el5.i386.rpm
Preparing... ########################################### [100%]
1:kernel-headers ########################################### [ 25%]
2:glibc-headers ########################################### [ 50%]
3:glibc-devel ########################################### [ 75%]
4:gcc ########################################### [100%]
Start Apache and verify installation
8- # cd /usr/local/apache2/bin
9- # ./apachectl start
Go to http://local-host, which should display the default message “It Works!”
10- Dowload WLSPlugin from http://Metalink.oracle.com
11- unzip WLSPlugin1.1-64bitApache2.2-linux64-x86_64.zip
for example /BEA_HOME/WLSPlugin1 or anyother directory
12- make sure the mod_wl_220.so library in you Plg-in lib directory
13 - Verify that mod_so.c is enabled by executing the following command:
#APACHE_HOME\bin\apachectl -l . the result must be like that
/apachectl -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_version.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
This command lists all enabled modules. If mod_so.c is not listed, you must rebuild your Apache HTTP Server,
making sure that the following options are configured:
..
--enable-module=so
--enable-rule=SHARED_CORE
Configuring the apache plug-in
14- Make copy of httpd.conf file
15- Add the http.conf file
# vi http.conf
- Add the following lines to the http.conf file
LoadModule weblogic_module /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/lib/mod_wl.so
WebLogicHost (your weblogic host name)
WebLogicCluster (your host name:port number, host name:port number)
Ex.
WebLogicCLuster myhost:7003,myhost:7004
Debug ALL
DebugConfigInfo ON
WLLogFile /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/wl-proxy.log
ex
SetHandler weblogic-handler
Using virtual host in place of Load Moduel
We can add the followin lines if we want to use virtual host in place of load moduel
SetHandler weblogic-handler
WebLogicCluster Hostname:7003,HostName:7004
SetHandler weblogic-handler
WebLogicHost YOUR HOST NAME
WebLogicPort 7002
16- Ensure that the ${PLUGIN_HOME}/lib is included in the LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH=/home/myhome/weblogic-plugin-1.1/lib
other options include copying the 'lib' contents to APACHE_HOME/lib or
editing the APACHE_HOME/bin/apachectl to update the LD_LIBRARY_PATH
18- Start the apache server
$ ${APACHE_HOME}/bin/apachectl start
19- Start Admin Server and Managed Servers
17- Check your Application URL
example: http://Myhost/mywebapp
No comments:
Post a Comment