TIP #1 - cPanel/WHM Server Security
cPanel/WHM Server Security is the most important aspect to keep your websites, and other data secure as new methods of attacks and hacks are popping up almost every day. This will make the servers protected from attacks, hacks, and various other threats.
- cPanel/WHM Server Security Advisor
cPanel/WHM Security Advisor will scan your server and display any hidden issues in the form of a list, color-coded in terms of severity. Security Advisor will also provide tips for correcting these issues and securing your cPanel Server.
Go to WHM Home >>Security Center >>Security Advisor and select the "Security Advisor Tool". From there, select "scan" to start the scan.
TIP #2 - Speed
Mentioned below is a list of Tweak settings you can change to improve Server performance. Make changes at your own responsibility.
Disable the Mailman mailing list settings
Change the "Email delivery retry time" to 30 minutes from the 15 minutes default
Change BoxTrapper Spam Trap and SpamAssassin Spam Box to off at WHM Tweak Settings
Disable MYSQL Disk Calculations
Disable Anonymous Logins and FTP uploads at Tweak Settings.
WHM Home >> Service Configuration >> FTP Server Configuration
TIP #3 - Optimizing Apache
Apache Optimization will improve the overall performance of your website without upgrading hardware(CPU & RAM). For improving your performance in Apache, WHM/cPanel is quite limited on what it can configure.
In WHM, go to -
WHM Home >> Service Configuration >> Apache Configuration >> Global Configuration
TIP #4 - Optimize MySQL
In a server environment, it is beneficial to correctly optimize cPanel Server MySQL settings.
Find Server "my.cnf" file or locate it at "/etc/my.cnf", and replace it with the following:-
max_allowed_packet = 1M
max_connections = 300
max_user_connections = 35
quick max_allowed_packet = 16M
To reduce memory usages, you have to convert all of your Database InnoDB tables to MyISAM if you have any. Memory usage is a significant factor in a web hosting server environment. InnoDB takes high memory usage, and we recommend that you avoid using it. It can impact Website load times slightly, but it allows Database tables to be accessed with a much lower memory footprint. You can change this with WHM/cPanel PHPMyAdmin.
To change this in PHPMyAdmin, click on your Database, in the Panel SQL Section.
ALTER TABLE table_name ENGINE = MyISAM;
And click "go."
For MySQL 5.6.6+, you need to disable performance_schema. This is usually turned on by default, and it uses a lot of Server Memory!
To disable performance_schema:-
Open my.cnf (typically @ /etc/my.cnf) via SSH or Virtual private server admin panel credentials >> add this line under [mysqld] >> performance_schema=0
Save/close my.cnf and then restart mysql service.
TIP #5 - Other cPanel User Backup Type
Instead of using compressed backups that are present by default, use incremental backups. This will take more space, but performance is better. You can configure incremental backups in WHM Panel directly at:-
WHM Home >> Backup >> Backup Configuration
TIP #6 - Optimizing cPanel/WHM Server PHP memory limit
In your php.ini file, reduce the PHP memory_limit value. You can change it at the mentioned location,
WHM Home >> Service Configuration >> PHP Configuration Editor >> Core >> memory_limit
To know more about our cPanel servers, check here