Category: logs

How to update cURL CA bundle on linux server?

July 7, 2016 by Linux Guru

Filed under Linux, logs

Last modified July 15, 2016

How to update cURL CA bundle on linux server Error log ——————– curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed ——————— Solution Install the ca-certificates package:sudo yum install ca-certificates Enable the dynamic CA configuration feature:sudo update-ca-trust force-enable Add it as a new file tocd /etc/pki/ca-trust/source/anchors/ sudo cp /etc/ssl/certs/intermediate.crt . Use command:sudo update-ca-trust extract.

Using Tomcat Reload Features To Speed Up Development

February 4, 2016 by Linux Guru

Filed under Linux, logs

Last modified July 15, 2016

Using Tomcat Reload Features To Speed Up Development Hot Reload Via Context Settings In detail-oriented stages of development, such as optimization, it is often necessary to make many small changes, some of which are merely tests of a variety of methods by which a single feature could be coded.  In this kind of environment, manually triggering every reload via the Manager application is not feasible …

mysqld dead but subsys locked

December 23, 2015 by Linux Guru

Filed under Database, logs, MySQL

Last modified November 30, 2016

mysqld dead but subsys locked MySQL error:-” mysqld dead but subsys locked “ [root@s4tehno ~]# service mysqld status mysqld dead but subsys locked. Then check processes list. [root@s4tehno ~]# ps -aux | grep mysql root      1877  0.0  0.0   5216  1844 ?        S    Mar15   2:55 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –socket=/var/lib/mog-error=/var/log/mysqld.log –pid-file=/var/run/mysqld/mysqld.pid root      4177  0.0  0.0   4048   712 pts/1    S+   14:35   0:00 grep mysql Try to restart mysqld …

MySQL Error 1418

December 23, 2015 by Linux Guru

Filed under Database, logs, MySQL

Last modified June 15, 2016

MySQL Error 1418 ERROR 1418 (HY000) at line 5: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) Solution: # mysql -u root -p MySQL> SET GLOBAL log_bin_trust_function_creators = ON; OR MySQL> # SET GLOBAL log_bin_trust_function_creators = 1; Reason: ERROR 1418 (HY000): This function …

Apache: Negotiation: Discovered File(s) Matching Request: None Could Be Negotiated

December 22, 2015 by Linux Guru

Filed under Application, Linux, logs, php

Last modified June 15, 2016

Apache: Negotiation: Discovered File(s) Matching Request: None Could Be Negotiated There are some methods to provide file in this manner,  www.example.com/index.php => www.example.com/index 1. Use of MultiViews In virtual host list, you can add entry for your server files by creating an alias.  <Directory “/home/server/htdocs”> Options Indexes Includes FollowSymLinks MultiViews Order allow,deny Allow from all AllowOverride All </Directory> 2. Use of RewriteEngine Make sure to …

command for read the file inside compressed .gz files without extracting files

December 16, 2015 by Linux Guru

Filed under Linux, logs

Last modified June 15, 2016

command for read the file inside compressed .gz files without extracting files Sharing simple commands by which we can read the files inside the compressed .gz file without extracting. Command 1: zcat abc.log.gz     expand files Command 2 : zless abc.log.gz    file perusal filter for crt viewing of compressed text Command 3 : zmore abc.log.gz    file perusal filter for crt viewing of compressed text

Sort unique IP address from Apache log

December 15, 2015 by Linux Guru

Filed under logs

Last modified June 15, 2016

how to sort unique IP address from Apache log I need to extract only unique IP addresses from my apache log file or Sort unique IP address from Apache log Use following command for getting unique ip from log file  $awk ‘{ print $1 } ‘ /var/log/httpd/access_log | sort | uniq -c OR $cat /var/log/httpd/access_log |awk ‘{ print $1 } ‘| sort | uniq -c …