Mail fails to deliver due to corrupt /etc/domain_secondary_mx_ips.cdb file

This error show up in Exim mail logs when trying to send email from cpanel email: Issue: The issue was occurring due to corruption in the /etc/domain_ secondary_mx_ips.cdb file. Check for an extra digit at the IP address. [23:11:03 user root@94146958 ~]cPs# /scripts/dumpcdb /etc/domain_secondary_mx_ips.cdb $VAR1 = { ‘actionforex.com’ => ‘192.15.25.502’ }; [/bash] To address this … Read more

Command for cPanel Exim that shows script responsible for outbound mail and other exim commands

Here we provide a particularly useful command-line command that shows you which scripts are responsible for outbound mail. For example, when WordPress themes get exploited, you will see a large number of messages coming out of a long directory inside of the user’s WordPress directory. Very large numbers of messages coming from home directories is … Read more

Use Path to PHP 7 to run a command vs OS PHP

When needing to run a command in a different version on php. Where is the path to php 7 on cpanel? # /opt/cpanel/ea-php70/root/usr/bin/php -v PHP 7.0.32 (cli) (built: Sep 14 2018 20:36:03) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies How to specify command line command … Read more

Curl Error When updating WordPress behind firewall: Error message: cURL error 28: Connection timed out after 10001 milliseconds

When updating wordpress, this error appears: Error message: cURL error 28: Connection timed out after 10001 milliseconds Resolution: Curl the site with the private IP and not the public IP. From inside the private network each server or device is known only by it’s private IP address and is always referenced using that address. Ref: … Read more

cPanel Update Error – Failed to download updatenow.static from server: The system cannot update the /var/cpanel/sysinfo.config file

cPanel presents and error on update: ***** FATAL: Failed to download updatenow.static from server: The system cannot update the /var/cpanel/sysinfo.config file. at /usr/local/cpanel/Cpanel/GenSysInfo.pm line 113. This issue stems from an issue with the rpm database. Run the following: rpm –rebuilddb /scripts/upcp –force

/var/cpanel/secdatadir/ip.pag file massive

Source: https://forums.cpanel.net/threads/var-cpanel-secdatadir-ip-pag-file-massive.565591/ This can add to server load and slow loading times as it gets scanned every page load. You also might want to disable mod_unique_id for modsec too. It will prevent that file from growing and being scanned. Clear the file yum install ea-modsec-sdbm-util Should also help keep that file in check if he … Read more