Sometimes it is useful to disable visitor statistics for some frequently visited sites, since there is no point in loading the server by analyzing huge log files and if you can use other statistical tools, such as Goole Analytics, for example.Continue reading “Disabling site statistics in cPanel”
I will give an example of installing ClamAV antivirus for cPanel and running a virus scan.Continue reading “Installing ClamAV for cPanel”
I will give an example of a script for scanning and email notifications when infected files are detected.Continue reading “ClamAV script for automatic scanning and email notifications”
In this article I will give an example of how to configure SPF and DKIM in cPanel/WHM.Continue reading “Configuring SPF and DKIM records in cPanel”
For example, update the MySQL server from version 5.5 to 5.7.
Before performing an update, it is imperative that you make backup copies of all databases, including the standard ones.
In this article I will give an example of installing the Let’s Encrypt plugin in cPanel (WHM).
Let’s Encrypt allows you to install free three-month certificates for domains and automatically renew them.
I will give an example of setting up AutoSSL in cPanel, which installs free three-month certificates, and also periodically renew them automatically. When certificates are installed, they are also configured in the Apache, Dovecot and Exim services.Continue reading “Setting up AutoSSL in cPanel”
In cPanel, you can enable question control for unknown IP addresses.
After entering the correct username and password, 4 questions will be asked.
To use Let’s Encrypt in cPanel, you need to install a special plugin.
To do this, connect to the server by SSH and execute the command from the root user:
After installing the Let’s Encrypt plug-in, you can use it in the AutoSSL management menu (WHM >> Home >> SSL/TLS >> Manage AutoSSL).
If you need to remove the plugin, then run the command:
Установка Certbot в Ubuntu
Replaced once the junk drive in the software RAID1, added it to the raid, it successfully synchronized, installed GRUB.
After a while I received an email message:
Subject: Cron <root@server> /usr/sbin/raid-check WARNING: mismatch_cnt is not 0 on /dev/md2
In my case, raid-check found that the mismatch_cnt counter is not equal to 0 for /dev/md2, which means that there may be broken sectors on the disk, or it simply needs to be resynchronized. Since I installed GRUB after adding the disk to the raid, this is probably the cause.
Example of viewing the counters of all arrays:
Or each in turn:
cat /sys/block/md0/md/mismatch_cnt cat /sys/block/md1/md/mismatch_cnt cat /sys/block/md2/md/mismatch_cnt
View the status of raids:
If mismatch_cnt is not 0 for any array, then you can try to resynchronize it:
echo 'repair' >/sys/block/md2/md/sync_action
echo 'check' >/sys/block/md2/md/sync_action
If you want to cancel the action:
echo 'idle' >/sys/block/md2/md/sync_action
Let’s see the synchronization status and other data of the array:
How to fix the problem with mdadm disks