Edit Default PHP-FPM Settings If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a... Read More
Changing default SSH port
By default, the SSH port is set to 22. Locate the following line in the file /etc/ssh/sshd_config: #Port 22 Remove # and change 22 to your desired port number. Though make sure you do not... Read More
Disable 2 factor authentication via ssh on a cPanel
To disable it via command line, ssh to the server and run this command: whmapi1 twofactorauth_disable_policy This turns two-factor auth off. However, it does not delete the current two-factor setups. So before you turn two-factor... Read More
Restoring visitors IP with mod_remoteip
Using EasyApache, install Apache Mod_RemoteIP ( ea-apache24-mod_remoteip ). Edit the conf file : nano /etc/apache2/conf.modules.d/370_mod_remoteip.conf RemoteIPHeader CF-Connecting-IP RemoteIPTrustedProxy 103.21.244.0/22 RemoteIPTrustedProxy 103.22.200.0/22 RemoteIPTrustedProxy 103.31.4.0/22 RemoteIPTrustedProxy 104.16.0.0/13 RemoteIPTrustedProxy 104.24.0.0/14 RemoteIPTrustedProxy 108.162.192.0/18 RemoteIPTrustedProxy 131.0.72.0/22 RemoteIPTrustedProxy 141.101.64.0/18 RemoteIPTrustedProxy 162.158.0.0/15... Read More
MariaDB/mySQL Increase limits
The default open files limit is 1024. This is fine for a few websites, but if you are hosting many websites this should be increased. 1. Login as root via SSH 2. Type : pico... Read More
How to Clear Page Cache in Linux?
Clear PageCache only: # sync; echo 1 > /proc/sys/vm/drop_caches Read More