Monday, July 20, 2015

Apache Installation & Configuaration

Below steps explains the steps required on how to install Apache Webserver Installation and configure weblogic plug-in:

Step1: Download the any stable version of httpd for your operating environemnt (Now I am intersted in Solaris) suitable binaries given as tar/zip file (Ex: httpd-2.2.11.tar) and Extract it
tar -xvf httpd-2.2.11.tar
Step2: Go to httpd-2.2.11 directory and execute the confiure command to configure the apache in one folder (Ex: apache2)
cd httpd-2.2.11 and run ./configure --prefix=$Home/apache2Step3: We need to execute the below commands to build I mean compile the binaries
make install
Step4: take the backup of httpd.conf file
cp httpd.conf httpd.conf_original
Step5: Edit the httpd.conf configuration file
vi httpd.conf
ServerRoot "$Home/apache2"
(ServerRoot is the path to the server's configuration, error and log files.It is possible to change this path, provided all the necessary files are copiedto the new location accordingly)
Listen IPAddress:Port (Ex: Listen 4.193.53.24:7012)
LoadModule weblogic_module modules/mod_wl_22.so
User wlusername
#main content of wl application details to update in httpd.conf file
Open tag of IfModule
#keep the info in open tag of IfModule ---mod_weblogic.c
WebLogicCluster hostname:7012,hostname2:7012
MatchExpression *.jsp
close tag of IfModule
Open tag of Location
#keep /application root folder name in Lacation 
SetHandler weblogic-handler
DynamicServerList ON
HungServerRecoverSecs 600
ConnectTimeoutSecs 40
WLCookieName JSESSIONID
DebugConfigInfo OFF
Debug ON
WLLogFile /$Home/apache/logs/web1.log
ConnectRetrySecs 2
Idempotent ON
FileCaching ON
WLProxySSL OFF
SecureProxy OFF
Debug OFF
Close tag of Location
ServerAdmin
ServerName mywebapps.com (we can use dns name , if we don't have it then we can use the ip)
Step6:copy the mod_wl_22.so module file from $Home/weblogic10.3/server/plugin/linux to $Home/apache/modules
cp $Home/weblogic10.3/server/plugin/linux/mod_wl_22.so $Home/apache/modules/
Step7:check the status of apche configuaration is ok
cd $Home/apache2/bin
apachectl -t
Step8: Now the starting your newly installed Apache webserver
apchectl -k start or httpd -k start
Step9: Access the application with the apache port
http://hostname:port/index.html
Step10: Stop the Apache
make
cd apache2/conf



apchectl -k stop or httpd -k stop

No comments:

Post a Comment