Turn off SSH passwords in Ubuntu, connect via SSH keys only

Ssh Keys

Once you have a successful connection to your remote instance with SSH keys, it is better practice to disable SSH Password Authentication to mitigate further bruteforce password attempts, this coupled with a service like Fail2ban will further strengthen your Virtual instance. Remote into your VPS via SSH and open the SSH config file: nano /etc/ssh/sshd_config…

Read More

Disable default WordPress emails on WordPress, themes and plugin updates

Disable Wordpress Default Update Emails

The PHP constants below will disable the default WordPress emails on WordPress, themes and plugin updates. They should be added into your wp-config.php file. // Disable WordPress core update emails add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable WordPress plugin update emails add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable WordPress theme update emails add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );

Read More

MySQL/MariaDB [Warning] Could not increase number of max_open_files to more than 32768 (request: 100000)

Mariadb Tuning

Seeing the warning recently on a number of VMs running MySQL/MariaDB. [Warning] Could not increase number of max_open_files to more than 32768 (request: 100000) A MariaDB process has requested a larger amount of open files, you can verify the current limit by starting a mysql session on your server and adding on the command line:…

Read More

Set monit to monitor mariadb on a RunCloud instance on Ubuntu 22.04

Monit Mariadb

Get up and running with Monit on Ubuntu 22.04 Install Monit SSH as root into your VM instance and install Monit apt update apt install monit Start/stop/restart and see the status of monit systemctl status monit systemctl start monit systemctl stop monit systemctl restart monit Status will tell if it’s running root@mel1:~# systemctl status monit●…

Read More