Many users are asking us how to enable automatic updates in WordPress. For the moment, there is no option in the WordPress admin panel. You must enable this option by editing the configuration file – wp-config.php.
The line that needs to be added to the bottom of the wp-config.php file to enable automatic minor and major updates is:
define( 'WP_AUTO_UPDATE_CORE', true );
More info on the WP_AUTO_UPDATE_CORE option from the WordPress site:
WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:
Value of true – Development, minor, and major updates are all enabled
Value of false – Development, minor, and major updates are all disabled
Value of ‘minor’ – Minor updates are enabled, development, and major updates are disabled
Notice: The WordPress will update itself to a development release ONLY if you already are using such a release.
It is recommended to run this command every time to update your MySQL/MariaDB from one major release to another. For example when upgrading from MySQL 5.7 to MySQL 8; MariaDB 10 to MariaDB 11. It checks all the databases(with all the tables) for any incompatibilities. It also updates the system tables with new privileges or options that might have been added in the new version.
Probably not many users use the Statistics Software (Analog/Awstats/Webalizer) that come with cPanel, but you may want to allow this option on the server. In the last years, most of the sites use Google Analytics.
On the same WHM configuration page will be able to configure the Log/Bandwidth Processing Frequency.
To modify the Statistics Software Configuration:
Connect to WHM
Go to Server Configuration >> Statistics Software Configuration
To see specific/all user’s statistics summary, go to the Statistics Status Summary and click the Go button.
To process the stats for one user go to the Process Statistics for User section, select the user from the drop-down list box and click the Go button.
To select the stats software to allow on the server go to Generators Configuration, choose the stats software you want and click the Save button.
To change the log/bandwidth processing frequency, go to Schedule Configuration, enter the interval and click the Change button.
For security reasons is a very good idea to change your password often. You can change the root password via shell, but also via the WHM interface.
To change the root password in WHM:
Log into WHM using your root credentials
Navigate to Server Configuration >> Change Root Password
Enter or Generate a strong password. (you can generate a max 18 char long password)
Click the Change Password button. You will see a confirmation message: The system successfully updated the root password. The following service passwords changed: system
Notice that only the user root can change the root password. A reseller with “all privileges” can’t change the root password. The user will get an error message API failure: (XID aexhaf) You do not have a user named “root”.
Tip: Use the passwd command to change the password from command line.