Posts

Showing posts from December, 2016

Cannot load /etc/httpd/modules/mod_wl_24.so into server: libopmnsecure.so: cannot open shared object file: No such file or directory

Image
Issue Definition:-    ==> All plugin files are copied to the apache module folder /etc/httpd/modules   ==> In httpd.conf below line is added     LoadModule weblogic_module  /etc/httpd/modules/mod_wl_24.so   ==> Below issue occurs while loading WebLogic Pxoy Plugin 12.2.1.2.0             While executing " httpd -t "  OR ". /apachectl -t " [root@test2 conf]# httpd -t httpd: Syntax error on line 60 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wl_24.so into server: libopmnsecure.so: cannot open shared object file: No such file or directory [root@test2 conf]# Cause:-  This issue occurs because link to shared library are not present Solution :-   a) Edit the file  ld.so.conf by adding plugin module path /etc/httpd/modules    vi /etc/ld.so.conf    /etc/httpd/modules   b) Execute below command    ldco...

How To Rotate Apache error_log & access_log Logs?

Image
There are two methods available for rotating Apache Httpd Server logs.      1) Manual Log Rotation      2) Log Rotation Using Piped Logs OR rotatelogs Utility Method 1)  Manual Log Rotation  By using a graceful restart, the server can be instructed to open new log files without losing any existing or pending connections from clients. However, in order to accomplish this, the server must continue to write to the old log files while it finishes serving old requests. It is therefore necessary to wait for some time after the restart before doing any processing on the log files a) Rename access_log & error_log   cd /etc/httpd/logs   mv access_log access_log.old   mv error_log error_log.old b) Do the graceful restart of Apache & check whether new log files error_log & access_log generated or not.   service httpd graceful c) Zip old log files after some time because ex...

Nginx Reverse Proxy To Apache Http Server

Image
Architecture Diagram  ========================== Summary: ========      1) Installing Nginx      2) Installing Apache Http Server & Integrating With Tomcat Application Server      3) Integrating Nginx with Apache Http Server      4) Start the Nginx Server      5) Testing the setup Using Nginx URL. Steps ===== 1) Installing Nginx Download Nginx Source Files using below URL http://nginx.org/download/nginx-1.10.1.tar.gz OR https://www.nginx.com/resources/wiki/start/topics/tutorials/install/ Copy the File  nginx-1.10.1.tar.gz to Remote Machine 192.168.52.129 using WinSCP Untar the File  nginx-1.10.1.tar.gz using below Command. tar -zxvf nginx-1.10.1.tar.gz Navigate to newly create directory ie.   /root/nginx/nginx-1.10.1  & Run below Commands. For more "Installation and Compile-Time Options" Please refer below link. h...

Apache Tomcat Clustering with Apache Http Server

Image
Summary       1) Create OS User tomcat      2) Install the JDK  & Export The JAVA_HOME in .bash_profile      3) Install Tomcat Binaries in Two Directories instance1 & instance2      4) Set JAVA_OPTIONS in setenv.sh file      5) Install Apache Http Server      6) Compile & Build Tomcat Connector for Generating mod_jk.so      7) Load the mod_jk.so file in httpd.conf file located at /etc/httpd/conf      8) Create workers.properties file with below content in Apache WebServer Machine      9)  Load the worker.properties file & Other Entries in httpd.conf    10)  Enter application context specific  entries in httpd.conf    11)  Start up instance1,instance2 and apache WebServer.    12)  Test the set up using WebServer URL Steps ===== 1) Create OS User tomcat ...