17 Jan 2020

Installing VestaCP on centOS 7 Server

Web hosting control panel are web-based interface that provide web hosting service that help users to manage their host services and servers.
Control panel with a GUI(graphical user interface) helps systems admins easily manage and monitor all hosted services client use.
Mainly used web hosting control panels are: vestaCP,cPanel,DirectAdmin,hpanel,ISPManager,ISPConfig,Plesk,Webmin.


Vesta control panel (VestaCP) is an open source hosting control panel,
which can be used to manage multiple websites, creat and manage email accounts, FTP accounts, and MySQL databases, manage DNS records and more



# Connect to your server as root via SSH
ssh [email protected]

# Download installation script
curl -O http://vestacp.com/pub/vst-install.sh

# Run it
bash vst-install.sh


11 Apr 2018

Installing CloudFlare plugin on cPanel server

This is a free Content Delivery Network (CDN) for your domain. CloudFlare provides a better Internet security services and distributed domain name server services, sitting between the visitor and the Cloudflare user’s hosting provider, acting as a reverse proxy for websites. CloudFlare’s cPanel plugin is also available to manage the CloudFlare account simply through the cPanel itself.

The CloudFlare cPanel plugin installation is very simple and it can be achieved within 5 minutes. This plugin integrates CloudFlare with your cPanel server. Try this and enjoy!!!

Installation Steps

Step 1. SSH to the server in which you need to install CloudFlare plugin.

Step 2. Enter the cPanel basic directory:

cd /usr/local/cpanel

Step 3. Download the tar file to your server.

curl -k -L https://github.com/cloudflare/CloudFlare-CPanel/tarball/master > cloudflare.tar.gz

Step 4. Untar the file

tar -zxvf cloudflare.tar.gz

Step 5. This will extracts a directory which includes a UNIQUE_ID. The sample format of this will be as follows:


Here w40bbb3 is the UNIQUE_ID.

cd cloudflare-CloudFlare-CPanel-UNIQUE_ID/cloudflare

Step 6. Execute the install script in the following format:

./install_cf API_HOST_KEY mod_cf "Your Company Name"

API_HOST_KEY – You will get this from your CloudFlare panel.
Your Company name – You can give your hostname here.

How to find the API_HOST_KEY?

You can copy the API_HOST_KEY from your CloudFlare account. Please do the following steps to find out the API_HOST_KEY.

Step 1. Log into your CloudFlare account.

Step 2. Go to “My Settings”.

Step 3. Scroll down to “Global API Key”.

Step 4. Click on the “View API Key” button to see your API identifier.

mod_cf is optional. If set, the installer will also try to install mod_cloudflare

That’s it!!! Now, you will be able to see an icon for “CloudFlare” in all your cPanel accounts.

Sample Output for a successful installation:

info [verify_api_spec_files] LoadFile
Register Complete

==> mod_cloudflare: Installed successfully.
==> You may need to customize your EasyApache profile to include Mod CloudFlare

CloudFlare module installed successfully.

In some cases, if you see the output as :

Your HOST_KEY (d892a17e61de5caa062302d54714eb39e4d42) is invalid.

If you see this error, please contact CloudFlare support and ask for valid Host key.

That’s it 🙂

15 Mar 2018

How to install nslookup, dig, host commands in Linux

That can’t do moment we face when we are trying to check if the website is pointing to correct IP and the nameservers which are authoritative for our servers are added correctly at the registrar end. A newly installed machine will not have dig, nslookup, host commands. So we have to manually install them on our servers. All these commands are included in a package called “bind-utils”. But different OS have different package names. I will be doing everything as root user, if you don’t have root privileges then you just have to add sudo before every command.

Installing is pretty straight process by the way.
My ubuntu sources list

[email protected]:~# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu lucid main
deb http://archive.ubuntu.com/ubuntu lucid-updates main
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://archive.ubuntu.com/ubuntu lucid universe
deb http://archive.ubuntu.com/ubuntu lucid-updates universe

In ubuntu systems it is “dnsutils”


[email protected]:~# apt-get update
[email protected]:~# apt-get install dnsutils -y

In RHEL/Centos it will be bind-utils

[email protected]:~# yum install bind-utils
12 Feb 2018

MySQL script for Performance tuning

What is MySQL performance tuning and what does it mean ?

MySQL has a lot of variables in its configuration. We can edit and set/alter variables to our requirements on our server. We can improve the MySQL performance by varying those values in configuration file. A lot of methods and shell scripts are available for tuning your MySQL server. Here I am explaining the installation and usage of one shell script for tuning the MySQL.

This performance tuning shell script will help you to optimize your MySQL server on a huge traffic cPanel server.

Installation steps

The MySQL tuner has simple installation steps. You can download the latest version from HERE.

Step I : SSH to your server as root user.
Step II : wget the latest version.

wget https://launchpad.net/mysql-tuning-primer/trunk/1.6-r1/+download/tuning-primer.sh

Step III : Change the file permission as executable.

chmod 755 tuning-primer.sh

Step IV : Execute the script.


See the attached image which has a sample tuner output.

That’s it 🙂

06 Feb 2018

Script for checking MySQL database connection from web-browser

It’s very simple and interesting to check the MySQL database connectivity from your account without login as a root. Here is a script to do the same.  For checking the database connectivity, you must know the database hostname, normally it is “localhost” then database-name, username and password.

PHP Code:

mysql_connect('db_host', 'db_username', 'password') or die('Could not connect the database : Username or password incorrect');
mysql_select_db('db_name') or die ('No database found');
echo 'Database Connected successfully';

It’s very simple concept, first the “mysql_connect” argument will check the database hostname, username and password. If the first argument is true, then PHP take the second line to execute else the script will die with an output given in the Die section. Similarly, mysql_select_db check the database on the server. If both of the arguments are true then you will get an output given after the echo command


1, If all of the input data(db_name, username, password, hostname) are right, then the output is like;

Database Connected successfully

2, If any of the entry in ‘mysql_connect’ secion is wrong, then the output is;

Could not connect the database : Username or password incorrect

3, If the database entry is wrong;

No database found

That’s it 🙂

14 Nov 2017

How to install SSL certificate on webmin

Webmin is one of the most commonly using Web Hosting control panels. This is an open source control panel which works on port 10000. Here Serversupportz going to explain how/steps to install SSL certificate on a Webmin server.

To add SSL certificate on a domain in your server which has Webmin installed, you must have a valid SSL certificate. Upload the SSL certificate to your server, under the domain name.

Follow the below pasted steps for installing SSL certificate on Webmin:

  1. Upload your SSL certificate file to your server – we recommend that this isn’t in your web root but under the domain name so you know where it is.
  2. Log into your Webmin control panel.
  3. Select the virtual host that you want to secure.
  4. Click on SSL options.
  5. Click “Yes” on Enable SSL.
  6. Select Certificate/Private key and browse to the location of the SSL certificate.
  7. Select Private key file and browse to the location of the ssl private key file.
  8. Save changes and return to the server index.
  9. Restart necessary services.

You may need to restart Apache. From the Apache Webserver page click on “Stop Apache” top right and then “Start Apache” when displayed.

 That’s it!
©2021 Tranzmedia Netvision Limited. All Rights Reserved.