Currently, there are three supported versions of PHP, i.e. PHP 5.6, 7.0, and 8.0. Meaning PHP 5.3, 5.4, and 5.5 have all reached the end of life; they are no [ … ]
Category: Real Time Concepts
How to know the Type of Virtualization in a Linux
How do I check if your Linux guest is physical or virtual. To TheĀ know the Type of Virtualization, InstallĀ Virt-what Tool For Ubuntu/Debian Linux: #apt-get install virt-what For CentOS/RHEL [ … ]
How To Know When Domain Will Get Expires
In centos Install the required packages with below command yum install whois Then enter the below command to check domain expiry date whois google.com | grep “Registry Expiry Date” | [ … ]
How to clear Memory Cache and Buffer Cache
1)To Clear PageCache only echo 1 > /proc/sys/vm/drop_caches 2)To Clear dentries and inodes. echo 2 > /proc/sys/vm/drop_caches 3) To Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches [ … ]
Rsync
To copy from one server to other server with incremental based we can go with rsync as shown below. rsync -avz username@IP:/var/www/html/Foldername/* 2019bkp/ &
Manual Log Rotation
Info: With the -f, –force option the logrotate will force the rotation of files even if they do not meet the specified criteria such as minsize, age, etc. logrotate –force [ … ]
Log
logrotate -d /etc/logrotate.d/apache2.conf(to log rotate manually) OR cd /etc/logrotate.d logrotate –force kannelnum (Manual Logrotate) cat /etc/logrotate.d/kannel801 ——————————- /var/log/kannel/kannellog/access45.log {hourly missingok rotate 7 compress delaycompress #notifempty create 640 root root sharedscripts [ … ]
How To Do Log Rotation
/etc/logrotate.d/apache2.conf /var/log/apache2/* { weekly rotate 3 size 10M compress delaycompress } The first line indicates that the directives inside the block apply to all logs inside /var/log/apache2: weekly means that [ … ]
How To Add SSL Certificate To Your Website
To add ssl certificate to the website we need to follow below steps: To create .key and .csr files to your website execute below command thwen you will get output [ … ]
How to know Linux OS versions Ubuntu/Centos/Redhat/
we can kow ubuntu versions with any one of following commands lsb_release -a cat /etc/os-release hostnamectl we can kow Centos versions with any one of following commands you need to [ … ]