top of page
Search

clear script

#!/bin/bash rm -f ./cleanspace.sh bold=$(tput bold) normal=$(tput sgr0) TIMESTAMP=$(date +%d-%m-%Y-%H-%M) LOGFILE="/root/cleardisk-$TIME...

innodb restore

Create a new folder: mkdir /var/lib/mysql2 From R1: Restore from the /var/lib/mysql folder: + The folder which is called the db name...

Scripts

#not wordpress site grep shop2vizag.com /var/log/messages | awk '{print $6}' | cut -d: -f1 |sort -n |uniq -c |sort -n #Domains using...

Wordpress basic scripts

Site URL and Home URL SELECT * from wp_options WHERE option_name = 'home' OR option_name = 'siteurl'; update wp_options set option_value...

Clam av scan script

#!/usr/bin/env bash # After you configure ClamAV, we recommend that you schedule a root cron job to run daily during off-peak hours. The...

Hack issues

grep -l -r "ZXJyb3JfcmVwb" <path to directory> grep -l -r "FilesMan" <path to directory> grep -l -r "OOO00000" <path to directory> grep...

PCI

Disable TLSv1 -------------------- Apache, Exim, Mail and FTP All -SSLv2 -SSLv3 -TLSv1 Weak or Medium Strength Cipher Suites Supported...

PFX conversion

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

MySQL Tuner

SQL tuner cd /root ; wget -N --no-check-certificate https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl ; perl...

SSL

HostnameSSL WHM : Home »Service Configuration »Manage Service SSL Certificates Reset cert for all services > it will then replace current...

Ebury

command : curl -s https://ssp.cpanel.net/ssp | perl cPanel support team update : It appears that your server has been root-level...

Magento

http://magento.stackexchange.com/questions/137516/error-on-admin-login-magento-2-1 Temporarily disabled on admin panel...

Plesk

1) Log in to server via ssh root for installation ---- sh <(curl https://installer.plesk.com/one-click-installer || wget -0 -...

Basic audit commands

DIRECT ROOT LOGIN >>>cat /etc/ssh/sshd_config|grep Permi >>>cat /root/.bashrc | grep "ALERT - Root Shell Access"...

Spamming Issues

Check whether spamming or not..If so then from which mail account : === https://linuxtechme.wordpress.com/2012/04/23/spamming-in-exim/...

Modsecurity

Mod-security --------------- Disable mod_security for an individual account Mod_security is an open source Apache module. This can be...

Altered RPM issues

Run the commands : /usr/local/cpanel/scripts/check_cpanel_rpms --fix mkdir /root/old_rpm_dbs/ mv /var/lib/rpm/__db* /root/old_rpm_dbs/...

Wordpress

WordPress Optimization When to Use This This is for use when a customer has indicated that a specific WordPress installation is slow....

BRUTE FORCE ATTACK

This bash one line script will search through all of the domain names in /usr/local/apache/domlogs/, removes all of the FTP logs and then...

Open VZ Commands

#BASIC OPENVZ COMMANDS vzctl Utility to control Virtual Private Servers. vzlist To see list of VPS existing on a node with...

  • White Facebook Icon
  • White Twitter Icon
  • White Instagram Icon
  • White YouTube Icon

© 2023 by Knowledge4mind. Proudly created with Wix.com

bottom of page