How to check if a domain is on the server

You have a lot of domains and you want to quickly check if a domain exists on the server. Just run the shell command: grep yourdomain /etc/userdomains

root@web [~]# grep /etc/userdomains plothost
root@web [~]#

In this case, the domain “” exists and it belongs to user “plothost”.

You may also want to know if the domain resolves to your server/IP. Use:

root@web [~]# dig

; <<>> DiG 9.9.0-RedHat-9.9.0-38.el7_3.2 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30116
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 512
;             IN      A

;; ANSWER SECTION:      5388    IN      A

;; Query time: 26 msec
;; WHEN: Mon Mar 20 04:11:52 PDT 2017
;; MSG SIZE  rcvd: 62

root@web [~]#

If the domain has an cPanel account you can search for it in WHM -> Account Information -> List Accounts.

WHM Search Account
WHM Search Account

On all our reseller plans you can host an unlimited number of domains. Check the offer here.

Share this post:

How to restart cPanel/WHM

Ever wanted to restart the cPanel/WHM system ? There is no need to restart your operating system. You can restart only the cPanel/WHM system via a simple command.
You need to be logged in as root via SSH. Execute the following command :

# /etc/init.d/cpanel restart

If you need any assistance please contact your host.

Share this post:

How to restart a service via WHM interface

cPanel/WHM offers a nice graphic interface to restart important services like Apache, FTP, MySQL etc.
First, you should login to WHM as root. Go to Restart Services menu like in the image bellow.
restart services

From here just select the service you want to restart and click the “Yes” button like in the following image .
restart services 2
The example is for the pure-ftpd service, but the interface is the same for all other services.

After the service is successfully restarted you will get a message like :

Waiting for ftpserver to restart………finished.
pure-ftpd (pure-ftpd (PRIV)) running as root with PID 4062 (process table check method)
pure-authd (/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/local/cpanel/bin/pureauth) running as root with PID 4050 (pidfile check method)
ftpserver started ok

The exact image is
restart services 3

For more details please visit the official support page at cPanel Documentation

Share this post:
Page 9 of 9
1 7 8 9