kbadmin has written 149 articles

Average CPU and Memory Usage from SAR Reports Using the Bash Script

Most Linux administrator monitor system performance with SAR report because it collects performance data for a week. But you can easily extend this to four weeks by making changes to the “/etc/sysconfig/sysstat” file. Also, this period can be extended beyond one month. If the value exceeds 28, the log files are placed in multiple directories, one for…

Configuring and Deploying CloudLinux’s Node.js Selector

Warning: We recommend that only experienced system administrators perform these steps. We are not responsible for any data loss. Overview Node.js™ is an open-source server environment that runs JavaScript. It does not use threads and does not block processes. Because of this, it provides efficient resource management. For more information about Node.js, visit the Node.js website. Requirements Before you can…

How to install enable SPF & Domain keys using SSH cPanel

Please follow the following steps to install and setup SPF and DKIM  For : SPF Record (Sender Policy Framework) Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing by verifying sender IP addresses. SPF allows administrators to specify which hosts are allowed to send mail from a…

What are preinst, postinst, prerm, and postrm script?

Postinst means: “AFTER the files have been Copied To the Device, THEN Run this Script.” Preinst means: “BEFORE the files Get Copied To the Device, Run this Script, THEN Copy the files To the Device.” Postrm means: “AFTER the files have been Removed From the Device, THEN Run this Script.” Prerm means: “BEFORE the files…

How to secure your wordpress site by using .htaccess file?

In wordpress you have a wp-config.php file.It has all the details related to wordpress installation like database user and password. And to secure the installation you add the following code in .htaccess file present in root of your wordpress installation:- order allow,deny deny from all WordPress blogs are injected by the hackers. We can protect…