In my previous post, I have shown you step-by-step how to install ZPanel on CentOS 6.6 so your VPS / dedicated server is ready to hosting domains, webs, and emails.
In this post I would like to show you how to hosting domain. After you host the domain, you can later manage it to add a new zone record, delete, or edit the zone. For example I will create ‘domain1.com’.
To create a new domain, navigate to Domain Management > Domains then type the domain you want to create in the Domain name field then click Create button.
After you click the Create button and no error occurs, you should see a message that changes to your domain has been successfully saved and you can see your domain listed under the Current domains.
Do not panic if status of the domain is Pending. It is because you have not created yet any zone in the domain. Now navigate to Domain Management > DNS Manager to create / manage DNS records for your domain.
Choose the domain from the list of domain to manage it then click Edit. DNS records for your domain will be automatically generated.
You can see above that, ZPanel automatically generated A records, CNAME record, MX record, and NS record for you. You can review the values. Let it as it is if you accept the value or change it to modify.
The system also tells you that the DNS zone has been loaded and can take up to 24 hours to propagate around the globe.
DNS Status for domain: domain1.com Your DNS zone has been loaded without errors. Please note that changes to your zone records can take up to 24 hours before they become 'live'. Output of DNS zone checker: zone domain1.com/IN: loaded serial 2014121031 OK
You can now try to check the DNS records of your domain using DNS lookup utility ‘dig’ as below:
$ dig @192.168.10.184 domain1.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 <<>> @192.168.10.184 domain1.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54716 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;domain1.com. IN A ;; ANSWER SECTION: domain1.com. 3600 IN A 192.168.10.184 ;; AUTHORITY SECTION: domain1.com. 172800 IN NS ns1.domain1.com. domain1.com. 172800 IN NS ns2.domain1.com. ;; ADDITIONAL SECTION: ns1.domain1.com. 172800 IN A 192.168.10.184 ns2.domain1.com. 172800 IN A 192.168.10.184 ;; Query time: 0 msec ;; SERVER: 192.168.10.184#53(192.168.10.184) ;; WHEN: Wed Dec 10 11:45:00 2014 ;; MSG SIZE rcvd: 113
If you can see the output like above, it means that the domain has been created and configured correctly by ZPanel.
The web directory and sample data web files also automatically created during the domain creation above. You can verify that the default web page is already configured by using a web browser and point the address to your domain name (in this tutorial I use domain1.com or www.domain1.com). See image below!
In the next tutorial I will show you how to upload / put your web files so it can be accessible through web browsers as your website.
Please check under /var/zpanel/hostdata/zadmin/public_html/ directory whether your web documents has been automatically generated inside this directory.
I done all thing right but still unable to open client website =S i wondering where went wrong
Hi Edwin, Sorry for the delay replying your comment. Seems that the browser does not know if kkwebhosting.com exists. Other than that, please also check the web documents for your domain has been created in /var/zpanel/hostdata/zadmin/public_html/ directory.
I am getting the same problem.
If I leave the default DNS values suggested by zpanel, it shows the zpanel login instead of the welcome page for the domain.
You should I change the DNS values?
To be specific, the dns of the domain is managed by an internet service provider.
The error shown suggests somehow that DNS program is not working. Maybe Firewall?
*********************************
Errors
detected have prevented your DNS zone from being loaded. Please correct
the error(s) listed below. Until these errors are fixed, your DNS will
not work.
Please note that changes to your zone records can take up to 24 hours before they become ‘live’.
Output of DNS zone checker:
**************************************
Use o codigo via SSH:
php /etc/zpanel/panel/bin/daemon.php
Funcionou!! Brasil!
followed the steps above and when pointing the browser to newly created domain i get a : 502 Bad Gateway
Use o codigo via SSH:
php /etc/zpanel/panel/bin/daemon.php
Funcionou!! Brasil!
Hi, Can you Please help me……..after dns setting….zpanel is showing the following error :……
DNS Status for domain: purchazo.in
Errors
detected have prevented your DNS zone from being loaded. Please correct
the error(s) listed below. Until these errors are fixed, your DNS will
not work.
Please note that changes to your zone records can take up to 24 hours before they become ‘live’.
Output of DNS zone checker:
Hi, Can you share what is the error message?
Hi,
Only the below message is showing up after dns setup in zpanel :
*********************************
Errors
detected have prevented your DNS zone from being loaded. Please correct
the error(s) listed below. Until these errors are fixed, your DNS will
not work.
Please note that changes to your zone records can take up to 24 hours before they become ‘live’.
Output of DNS zone checker:
**************************************
I have also added purchazo.in domain in droplet……and added IP & NS1, NS2, NS3 of DO in godaddy.
but whenever I am trying to see my wordpress website on browser.http://purchazo.in or purchazo.in/wp-admin…….it is redirecting to zpanelcp login screen always
I uploaded wp thru sentastico(zpanel module), and my wp files are in htmp_public/ folder (root folder) i am using ajaxplorer(under zpanel) to explore files.
literally fedup, i just wish to use one droplet($10) for some wordpress websites (many), and till now have erased and created 15-20 droplet with zero result.
Please help and suggest simple way of creating more than 1 wp site on one 1 droplet.
Regards
In my example tutorial, I hosted domain1.com on zpanel. The web documents for this domain should be uploaded / put into “/var/zpanel/hostdata/zadmin/public_html/domain1_com”. In case of your domain purchazo.in, your web documents should be located at “/var/zpanel/hostdata/zadmin/public_html/purchazo_in” Try to find this directory. Hopefully it will help you setting up your wordpress site on zpanel
Use o codigo via SSH:
php /etc/zpanel/panel/bin/daemon.php
Funfa