After upgrading the firewall from APF (Advanced Policy Firewall) to CSF (ConfigServer Security & Firewall) on your VPS or Dedicated server, you may find that you are receiving frequent email notifications such as the following:
/sbin/iptables-save > /etc/apf/internals/.apf.restore && /usr/bin/date +"%s" > /etc/apf/internals/.last.full
/bin/sh: /etc/apf/internals/.apf.restore: No such file or directory
This occurs when APF is uninstalled but the associated cron job is not removed. Here we cover the steps to remove this cron job to stop the notifications.
Related Articles
How to SSH into VPS or Dedicated Servers
Install CSF
500 Error on CSF Plugin
Remove Cron Job
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- Access the server via SSH as the root user or using the Terminal in Root WHM
- Confirm APF is not installed by running the following command
apf
NOTE: If it is not installed the output should appear as follows:root@vps##### [/]# apf
-bash: apf: command not found - Navigate to the cron.d directory using the cd command
cd /etc/cron.d/
- Remove the APF cron with the following command
rm apf-fastload
- When prompted, type "y" and press the Enter key to confirm removal
- Restart the crond service with the following command
/scripts/restartsrv_crond
Comments
0 comments
Article is closed for comments.