linux

 Install Squid in Linux and Enable Password Authetication   Why squid:   Squid is a proxy server which lets you browse websites through a proxy. Using a proxy, you can:   1) browse websites blocked by your ISP. 2) browse websites and your Service provider wont know which all websites you browsed. 3) browse securely     Installation:     How to install squid in Ubuntu:   sudo apt-get install squid /etc/init.d/squid start     [...]

linux

  How to remove passphrase from SSL key so the apache wont ask for for a passphrase while restarting       Sometimes, passphrase in SSL keys are kinda embarrassing. You may have experienced situations where apache starup script will ask for ssl passphrase while restarting apache. I vote you remove the passphrase from all SSL keys unless its ok for you to remember and enter the passphrase of all SSL keys one by one [...]

How to fix: OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:keyvalues mismatch     You may have encountered problems while installing ssl certificates. If the certificate and key file mismatches, it will return the following error.   OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:keyvalues mismatch     To check if the cert and key file matches, run the following commands.   – View the content of the certificate file by running the following command.   openssl x509 -noout -text -in /path_to_crt_file/file.crt   [...]

      If you get the following error while starting tomcat,   ====== org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:1321) ======   To fix the problem, delete all contents of the folder $TOMCAT_HOME/work.   $ rm -rf $TOMCAT_HOME/work/*   if the above command is not working, locate the tomcat base folder and replace $TOMCAT_HOME with the corrct folder.   – Restart tomcat   sudo /etc/init.d/tomcat restart or $TOMCAT_HOME/bin/shutdown.sh $TOMCAT_HOME/bin/startup.sh 

apache

How to find/change apache log file location in Linux:     This article will explain how you can find/change apache log file location.       How to find apache log file location in Ubuntu/Debian.   To find the log file location in Ubuntu, run the following command.   grep -i ErrorLog /etc/apache2/apache2.conf   You’ll get an output similar to this.   $ grep -i ErrorLog /etc/apache2/apache2.conf # ErrorLog: The location of the error log [...]

How to fix the error “Insufficient resources are available to complete a system request” in Websphere MQ       You may get the following error while trying to start a mail queue manager in MQ. You need to increase shmmax limit in kernel to fix the problem.   Check the shmmax limit in your Kernel by running the following command.   In Ubuntu/Debian, run: sudo sysctl -a|grep shmmax   In CentOS/Redhat/Fedora, run. sysctl -a|grep [...]

How to increase server disk space Disk Space:   Sometimes you may need to increase the disk space of your Amazon EC2 instance. Here is how:   Login to your Amazon portal and click on EC2 tab.   1. Click on the instance to select the instance. Right click and click “Stop”. This will shut down your instance. Make sure that you click on “Stop”, not the “Terminate” option. 2. Go to Volumes, click on [...]

Copyright © 2012 Webhosting Tutorials All Rights Reserved.