In order to know that you need to add an ID to a rule you will have already found the error in the logs. To white list the rule this requires the rule to have an ID. All of the rules are stored in /usr/local/apache/conf/modsec2.user.conf. I usually vim the conf file and / to search for the pattern match that the error lists. You can also go to the line number listed in the error.
vim /usr/local/apache/conf/modsec2.user.conf
When you find the correct rule and line you will need to add an ID. It doesn’t really matter what number you assign to it as long as it already is not in the file. the syntax to add the ID would be as follows:
….rule” “ID:300018”
Save the file and now you can white list the ID number.
Backups are very important to a website. If something should happen to the server, whether it be a hardware failure or breech of security, it is always good to have a copy or 2 to revert to.
Backups can be setup 2 ways. The host can make backups, download backups and restore backups from within WHM and the end user can do it right from their cPanel account.
Configure automatic backups in WHM:
Type “Backup” in the find box
Just below that, click “Configure Backup”
This will bring you to a screen with a lot of options. It is important to pay attention to each option so that you get what you need in your backups. You can backup the whole account, just the database or just the users home directory.
There are many options available to choose from to fit your needs. At the bottom you can use ftp to transfer the backups to an off site server. Also at the bottom you can exclude certain accounts that you don’t need backed up. You can also set up the backups to be compressed or not compressed. compressed backups save space but non compressed backups don’t take as long to complete leaving more resources for the sites.
Backups In cPanel:
Type “Backup” in the find box
Click on “Backup Wizard”
You will see backup and restore buttons click “backup”
Now choose a Full backup or one of the partial backup options
Choose the home directory for the file location
Add your e-mail address to receive confirmation upon completion
Click “Generate Backup”
Now all you have to do is click “Go back” and you will see where the backup link is at the top. By clicking this link it will download the backup to your home/office computer.
Restoring in cPanel is just as easy.
Type “Backup” in the find box
Click on “Backup Wizard”
You will see backup and restore buttons click “restore”
Then choose the type of backup you would like to do, Home directory, Database. or email.
Then browse you home/office computer for backups you have saved
Click “upload”
The files that you have requested have now been restored.
Below you will find some videos and links to help explain configuring backups.