Another important function of SSH is allowing secure file transfer using SCP and SFTP....Basic memcache security
Since most clients are not aware of the security risk that memcache represents, there is one...Can I change root's email address or forward it to an external address?
Simply create /root/.forward and place your email address in this file. It will be forwarded to...Changing the SSH Port for Your Linux Server
To Change the SSH Port for Your Linux Server Connect to your server via SSH (more info)....DNS Resolution with resolv.conf
How do I edit the “/etc/resolv.conf” file?Use text editor such as vi or gedit from Linux...Find & Grep
find . -name '*.py' -print0 | xargs -0 grep 'something' > output.txtFormats for /etc/mailhelo and /etc/mailips
You may use any command-line text editor such as vi (or vim), nano (or pico), to edit the files....How To Harden The Security Of /tmp Directory?
Users must take the following measures for hardening the /tmp directoryA. Creating /tmp as a...How To Install CSF Firewall
Installation is quite straightforward: cd /usr/src/ rm -fv csf.tgz wget...How To Install MariaDB on CentOS 6
MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and...How To Install Varnish 4 on CentOS 7
Varnish is a proxy and cache, or HTTP accelerator, designed to improve performance for busy,...How To: Automate Server Scripts With Cron
Servers can automatically perform tasks that you would otherwise have to perform yourself, such...How To: Back Up MySQL Databases From The Command Line
While automated backups are important, sometimes you just want to take a quick and dirty snapshot...How do I switch my DNS resolvers away from Google?
Recently many users have had issues with Google's DNS resolution, which have really highlighted...How to Check CentOS Version
The easiest way to check your CentOS version is via the command line. Login to your CentOS...How to Delete matching files in all subdirectories
Remove all *.swp files underneath the current directory, use the find command in one of the...How to Display (List) All Jobs in Cron / Crontab
View Root’s Cron Jobs crontab -l View a User’s Cron Jobs crontab -u username -l Example with...How to List Which Apache 2 Modules are Enabled on Fedora 21
The Apache web server is one of the most popular and powerful web servers in the world due to its...How to Restart OpenVPN
The exact method you use will depend on your OS, and whether you start as a service or not.Centos...How to automate SSH login?
Don't use a password. Generate a passphraseless SSH key and push it to your VM. If you already...How to check listening ports with netstat
Check ports To list the TCP ports that are being listened on, and the name of each listener’s...How to check os version in Linux command line
Check os version in Linux The procedure to find os name and version on Linux: Open the...How to disable entity tags (ETags)
DISABLING ETAGS To disable sending entity tags in the HTTP headers, add the following two lines...How to enable Nginx as reverse proxy in Plesk 12
Tested Environment: Centos 7Plesk Version: 12 Overview: Apache with Nginx Nginx, a...How to find sending spam emails and enable mail header in php.ini
- In Linux servers if there are a lot of emails in the queue "over 100" emails. you can check if...How to find the public IP address from command line
Here is how to find the public IP address from command line. You first need to install curl as...How to redirect HTTP traffic to HTTPS using an .htaccess
The below code when added to an .htaccess file will automatically redirect any traffic destined...How to restore cpanel backup with new username?
Everybody knows, how to restore the cpanel backup using scripts command but most of us doesn’t...How to test keep-alive is working on client end
You can use Curl like this: curl -Iv http://www.aptivate.org 2>&1 | grep -i 'connection...IP canonicalization via htaccess
You generally don't want to mix Redirect (mod_alias) with RewriteRule (mod_rewrite) because they...Install memcache
Step 1: Login into your WHM panel and using easyapache enable Memcache Step 2: SSH into...Kill all processes running by a partition
In some occasions you ould need to kill all the process running by a partition in order to umount...PHP.INI settings Disable exec, shell_exec, system, popen and Other Functions To Improve Security
Open a terminal application or login to your server over the ssh session using ssh command. Open...Page Speed: Enable gzip compression
What is gzip compression? When a user hits your website a call is made to your server to...Setting up a permanent 301 redirect via .htaccess
A permanent 301 redirect in your .htaccess file lets search engines and others know that a old...Ubuntu: “Failure to download extra data files” after installing ttf-mscorefonts-installer
Solution 1: Connect to the internet and run this command below, to fix the error sudo apt-get...Unzip Multiple Files in Linux
Let us suppose that a folder, a “zip_files” folder in our case, contains multiple zipped files...
Powered by WHMCompleteSolution