Nameserver IPs not showing in WHM?

Hi everyone, I have faced with a Nameserver Ips issue, thats my “Nameserver IPs” section won’t show ips in WHM. All ips are present in /etc/nameserverips file but still ips missing.

So How to fix that? i found a solution and want to share again with you, hope this tip will be helpful. Please follow the steps:

– Firstly, check the entries in /etc/nameserverips file, it should look like the below command output

root@root[~]# cat /etc/nameserverips

In that case correct ips entry in the following /var/cpanel/nameserverips.yaml file.

/var/cpanel/nameserverips.yaml entries should be like this:

root@root [~]# cat /var/cpanel/nameserverips.yaml
“″: 1
count: 1
ns2, 1
count: 1

If your files are not showing properly, so you should edit those files following the examples above.

nano /etc/nameserverips
nano /var/cpanel/nameserverips.yaml

Now, go to your WHM and check Nameserver Ips section, your ips should be there 🙂

Thank you

Setting up Private Nameservers in Cpanel

We’ll show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and
This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and Once your nameservers are setup clients can then use your own private nameservers for their domains.

1. Regiser your domain

Register the domain name you would like to use.This domain will be used as your nameservers – eg and

2. Additional IPs

Have 2 available IP addresses for your server that aren’t in use.You will need to contact you provider to obtain these IP addreses.

3. Registering the Nameservers

Now login to your domain management page for the domain you registered and register and as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries – if so, you should use this facility.
These registrations may take a few days to propagate (often as many as 3 days).

Continue reading “Setting up Private Nameservers in Cpanel”

Centos 6 & Cpanel: How to install Memcached

What is Memcached?

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

Official website:

How to install Memcached:

1. Install Required Packages

yum install libevent libevent-devel -y

2. Configure and Compile Latest Version

tar xvf memcached-1.4.13.tar.gz
cd memcached-1.4.13
./configure && make && make install

3. Install Memcached Configuration

Open /etc/memcached.conf with your favorite editor and paste in:

#Memory a usar
-m 16
# default port
-p 11211
# user to run daemon nobody/apache/www-data
-u nobody
# only listen locally

Continue reading “Centos 6 & Cpanel: How to install Memcached”

Centos 6 & Cpanel: Setup Nginx as Reverse Proxy with Apache

cPanel comes with Apache web server by default. It does not mean that we cannot integrate Nginx inside. With some minor changes, we can install Nginx to listen to port 80 and forward any PHP process to Apache on another port 8080. Apache is not really good in handling static files, so we will pass this task to Nginx. You will noticed that your memory and CPU will decrease once you have done this setup.

Warning: This setting is not suitable for shared hosting environment. VPS and Dedicated server only.

1. Install mod_rpaf:

– Since Nginx will be reverse proxy for Apache, we don’t want our log file to record the proxy IP. We want the real IP as usual. This will make sure our stats page like Webalizer and AWstats will record the correct information. So we need to install mod_rpaf which is “Reverse Proxy Add Forward” module for Apache. You can download that at

cd /usr/local/src
tar -xzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-*
apxs -i -c -n mod_rpaf-2.0.c

– Once installed, we need to load the module into Apache configuration. Since cPanel already has Include Editor for Apache, we will use that functions. Login to WHM > Service Configuration > Apache Configuration > Include Editor > Pre Main Include > All Versions and paste following text:

LoadModule rpaf_module modules/
RPAFenable On
RPAFproxy_ips # replace the value with your server IP
RPAFsethostname On
RPAFheader X-Real-IP

– Click Update > Restart Apache. The module should be loaded after restart.

Note: You can do this manually. Just open /etc/httpd/conf/httpd.conf with your editor then add lines above.

nano /etc/httpd/conf/httpd.conf

Restart Apache:

service httpd restart

2. Change Apache listen port:

– Before we install Nginx, we need to change Apache port to 8080. Login to WHM > Server Configuration > Tweak Settings > Apache non-SSL IP/port: 8080

Note: You can use another Port (I used port 8080) but you should make sure that your firewall allows that port.

My case, I installed CSF (ConfigServer Security & Firewall – csf v5.49) on my XEN VPS (Centos 6 32bit + Cpanel)

So to open that port (8080) , i must go to Plugins > ConfigServer Security & Firewall > ConfigServer Firewall > # Allow incoming TCP ports > TCP_IN > add port 8080 


– We need to run following command so cPanel will remember that Apache configuration template has changed:

/usr/local/cpanel/bin/apache_conf_distiller --update --main


Continue reading “Centos 6 & Cpanel: Setup Nginx as Reverse Proxy with Apache”