Remove /tmp/ cronjob
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
There is no excerpt because this is a protected post.
Performing a MySQL Database Dump From your SSH command prompt type … mysqldump -u {username} -p {password} {databasename} > {databasename.sql} Replace the parameters with the appropriate values {username} – this is your database username {password} – this is the password for your database {databasename} – the name of your database {databasename.sql} – the file to…
This article describes how to check and upgrade the Linux kernel in OpenVZ, KVM, and Dedicated Servers (including the CloudLinux platform). Checking the Kernel Version To check system parameters such as the kernel version and build date, OS architecture, hostname, etc., you can use the uname command, which is included in coreutils package: # uname -rv 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan…
cat /usr/local/nginx/conf/vhost.ssl.d/domainname.com.conf Add below lines before – location = /favicon.ico { #………….. Cpnginx OCSP stapling protection for security start ……………….. ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /usr/local/nginx/conf/ssl.ca.d/gameoncricket.com_ca-bundle; resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2 valid=300s; resolver_timeout 5s; #………….. Cpnginx OCSP stapling protection for security end………………….. After above, nginxctl rebuildvhost domainname.com check nginx status – systemctl status nginx.service…
Importing a MySQLDUMP From your SSH command prompt type … mysqladmin -u {username} -p {password} create {databasename} mysql -u {username} -p {password} < {databasename.sql} Replace the parameters with the appropriate values {username} – this is your database username {password} – this is the password for your database {databasename} – the name of your database {databasename.sql}…