Installing Webmin

While the big control panel suites you can install, like cPanel or Plesk, are excellent for large scale deployments or easy system administration, sometimes you just want an interface to quickly carry out complex tasks, which doesn’t require a package as large as cPanel/Plesk.

Webmin, a free and powerful control panel, it easy to install and allows you to carry out administrative tasks in an easy to use browser based frontend. This tutorial will guide you through installing Webmin.

Continue reading Installing Webmin

cPanel Name Server Setup

It seems no matter which flavor of linux / unix you are running and which control panel software that setting up custom name servers is always a problem. This How-To will be for installing name servers on a Linux CPanel server. Custom Name Servers are great because you can provide your webhosting customers with ns1.yourcompany.com instead of your server / upllink providers name servers. You will also know how to install Custom name servers for your reseller accounts.
Continue reading cPanel Name Server Setup

DDOS check via number of connections

DDOS check via number of connections

A quick and usefull command for checking if a server is under DDOS is

That will list the IPs taking the most amount of connections to a server. It is important to remember that the ddos is becoming more sophistcated and they are using fewer connections with more attacking ips. If this is the case you will still get low number of connections even while you are under a DDOS.

Continue reading DDOS check via number of connections

cPanel Security – Random JS Toolkit

A server compromise trend has been recently reported targeting multiple hosting platforms. RedHat Enterprise Linux & Centos 4/5 and Fedora Core 5/6 are the most common targets. This compromise is not believed to be specific to cPanel software. This issue has been seen on systems running a variety of control panels.

Continue reading cPanel Security – Random JS Toolkit

Manually setup your name server IPs on a cPanel server

The Domain Name System, or DNS, is one of the most essential parts of the modern web. Whenever you enter a domain name into your browser’s URL bar, DNS facilitates the translation of this request by name servers into a server-routable IP address. This process is what makes browsing the web so easy to do.

A name server is a program that runs on a server and provides DNS information for that server in response to any requests. Without a properly configured name server, people will have trouble finding the websites you host. This guide will walk you through the steps for setting up name servers in cPanel/WHM and ensuring their correct functioning.

Getting started

Here’s what you need to know before you start:
• You’ll need to have root access to the parent server (Cloud Server or Dedicated Server) in order to set up a name server.
• You will also need to have your name servers registered to your IP addresses at the registrar level. We’ll assume you will have two of them for the purposes of this guide. Take care of this before proceeding with the rest of the steps.

Tutorial

The first step will be to create the name servers. In order to do that, you must go to the “Basic cPanel and WHM setup” section of your cPanel instance. At the bottom of the page will be a couple of textboxes labeled as name servers. In these boxes you’ll write the name servers that you registered with at the registrar.

Now we should verify the name server registration. That will require clicking on the “Nameserver IP” option in the WHM menu on the left-hand side of the page. Note here whether both of the name servers are showing up without an IP address.

If they are, then it’s now time to log in using SSH and delete the cPanel name servers IP cache. Connect to your server and make sure that you have root access. Enter the command below in order to delete the name server ip cache file:

rm /var/cpanel/nameserverips.cache

Edit cPanel Nameservers script file

Your next step is to edit the name servers script file. We’ll do this with nano, or you can use your preferred text editor:

nano /var/cpanel/nameserverips.yaml

For each name server in the file, manually replace the IP addresses with the ones you registered at the registar level for your name servers. See below for an example (using myserver.com and random IPs for the purpose of this guide):

ns1.myserver.com:
207.215.215.55: 1
count: '2'
zones: myserver.com,anyotherurl.net
ns2.myserver.com:
107.215.215.66: 1
count: '2'
zones: myserver.com,anyotherurl.net

Note: Replace 207.215.215.55 with the IP address of your first nameserver and 107.215.215.66 with the IP address of your second nameserver.

Save and close the file. The next file we’ll edit is /etc/nameserverips:

nano /etc/nameserverips

The below is an example of how we’d like you to alter the file. Make sure to replace the gtcomm.net domain and the IP addresses with your own domain and IP addresses.

207.215.215.55=ns1.myserver.com
107.215.215.66=ns2.myserver.com

Finally, it’s time to restart cPanel and named, which is our name server daemon. Use this command to do so:

/etc/init.d/named restart && /etc/init.d/cpanel restart

After having finished, if there are any zones configured to the server, you’ll have to verify that the dns entries for each name server in each zone matches the IP. Go back into your graphical cPanel/WHM interface and click on “Edit DNS Zones” in the left-hand menu. Select each zone and click the “modify” option, which will show you the values. If any of them are incorrect, you can update them and save your changes.