This guide will ensure the correct p0f RPM gets installed after an operating system update from Centos 6 to Centos 7. During this type of server change, other RPMs may also need to reinstall.
cPanel version 86 RPMs can be downloaded and retrieved from the following URL:
http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64
The cPanel software doesn't support in-place Centos 6 to Centos 7 upgrades. We recommend that you migrate to the new server via the WHM Transfer Tool. This process will indeed take longer to complete than an in-place Centos 6 to 7 update, but it also ensures a clean cPanel and operating system.
Generally, on a cPanel server, the check RPMs command can be used to analyze or repair RPM issues.
/scripts/check_cpanel_rpms
We found that in the event Centos 6 is upgraded in-place to Centos 7, it causes a failure with the p0f service. The failure can occur due to changes between the Centos 6 and Centos 7 RPMs. The only way to repair this issue is to download and install the RPM manually.
Note: The below instructions are for cPanel version 86. The RPMs used may differ from different major versions of cPanel.
1. Get the RPM.
wget http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/p0f-3.09b-1.cp1186.x86_64.rpm
2. Reinstall the RPM.
rpm --reinstall -vh p0f-3.09b-1.cp1186.x86_64.rpm
3. Restart the service.
systemctl restart p0f
4. Check the service status.
systemctl status p0f
Related Resources:
- Check cPanel RPMs
https://docs.cpanel.net/knowledge-base/rpm-versions/the-check_cpanel_rpms-script/
- WHM Transfer Tool
https://docs.cpanel.net/whm/transfers/transfer-tool/88/
- Migrate all accounts to a new server