Please follow the below steps to mirror a repository. 1) Create a new private repo in the destination GitHub account with the same repo name or different name.2) Open Terminal3) Create a bare clone of the repository in the terminal with the below command. 4) Mirror-push to the new repository with… Continue Reading Mirroring a Repository

When I tried to setup SSL, I got the above error. Please find the below screenshot. I have not added the chained.crt in proper order. That is the reason I got the above error. If the server certificate and the bundle have been concatenated in the wrong order, nginx will… Continue Reading  SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

I got the above error when I am executing the bash script with mail command. In the scripts you use -a in the mail commands to attach the logfile. This does not function and results in an error that an invalid header is being added to the mail. Looking in… Continue Reading Invalid header: /var/log/rkhunter.log

If you get the above error when you setup Jenkins job, please follow the below steps. There may be several reasons behind this error. One the reason may be if you don’t have git installed where you have jenkins server. To avoid this you can use the below given command.… Continue Reading Failed to connect to repository Error performing git command git ls-remote -h https github com jenikis hook git HEAD

To disable foreign key constraints when you want to truncate a table: Use FOREIGN_KEY_CHECKS and remember to enable it when you’re done:

Remove server name from Apache headers:- It is essential to remove Apache server header to hide Apache server information and protect your website from malicious attackers. Here’s how to remove server name from Apache response header using htaccess. You can use it to hide the Apache version and server type… Continue Reading Hide server details and disable TLSV1.0 and TLSV1.1

Sometimes we may delete the cPanel account accidentally. May be we will be having the backups enabled but still inorder to get the latest backup before termination, you can use the below script. Go to the below path/usr/local/cpanel/scripts Create a file with name “prekillacct”vi prekillacct Install AWS CLI in the… Continue Reading Script to backup the cPanel account to S3 before the termination

When you get the above error, please follow the below steps. 1) Checked the file where the Javaheapmemory needs to be increased. Developers can help you on this. 2) After identifying the file, increase it accordingly. For example:- If the current value is 2048m then increase it to 4096m. Issue… Continue Reading java.lang.OutOfMemoryError: Java heap space

MySQL replication should work without problems even if the servers are restarted, databases created and removed, data flowing in and out. Sometimes, however, there are errors that are breaking the replication process. It is good to know once such situation appears. Please find the bash script below which gives the… Continue Reading MySQL replication status alerts with bash script