PDA

View Full Version : How to add website in zPanel



Fli
07-11-2015, 03:54 PM
Login zPanel
Home / Server Admin / ZPanel Config, change "Server IP Address" value to be your server IP
Home / Domain Management / Domains / Create new domain
Home / Domain Management / DNS Manager , edit your domain, "Create records" button

Login your domain registar control panel (domain registar is where you registered your domain) and discover on how to "register nameservers". (In case you ordered domain from InstantCpanelHosting, here is how to register them: go to Client Area (http://instantcpanelhosting.com/clientarea.php) / Domains / My Domains / Manage Domain / Management Tools / Register Nameservers. First nameserver will be ns1 and second ns2. The IP is your VPS/server IP)

ns1.yourdomainhere.tld + VPS/server IP
ns2.yourdomainhere.tld + VPS/server IP
(replace yourdomain.tld by your real domain name)

Change your domain nameservers to become ones you just registered (ns1... ns2...). (If domain was ordered from InstantCpanelHosting, then change nameservers from Client Area (http://instantcpanelhosting.com/clientarea.php) / Domains / My Domains / Manage Domain / Nameservers.) This way domain will point to your server. You may then verify domain at www.intodns.com (http://www.intodns.com) to see if there is any serious issue.
Home / Database Management / MySQL Database, create new database
Home / Database Management / MySQL Users, create new user for that mysql
Home / Database Management / phpMyAdmin, login using db name and username previously created
Click database name and choose "Import" tab to import database file/backup

Now upload website files, one can use FTP (Home / File Management / FTP Accounts) or SCP client like FileZilla or WinSCP to connect server via SSH. The directory to upload files should be: /var/zpanel/hostdata/zadmin/public_html/yourdomainHERE_tld/
files should have apache:apache permission, so i do this command via SSH or SCP client: chown -R apache:apache /var/zpanel/hostdata/zadmin/public_html/yourdomainHERE_tld

Then i do following SSH/SCP commands to assign appropriate permissions to the files and folders:
find /var/zpanel/hostdata/zadmin/public_html -type f -iname "*.php*" -exec chmod 644 {} \;
find /var/zpanel/hostdata/zadmin/public_html -type d ! -iname "*tmpl_c*" -exec chmod 755 {} \;
chmod 777 /var/zpanel/hostdata/zadmin/public_html/*

imort
04-14-2016, 03:09 PM
Home / Domain Management / DNS Manager , edit your domain, Create records
that way DNS records should have been created.
ns1.yourdomain.tld
ns2.yourdomain.tld

It's not so obvious as we usually can think.
Most people just doesn't know how the DNS works, which records do they need to create, when and where it needs to be done, etc.
If you have bought your domain from some register service and they can provide you their nameservers for storing your DNS zone data, then you need to create one DNS records total: A type record named after your website name and pointed to it IP address.

But if you have your own DNS servers then you'll need to create one or two NS records as shown in the quote.

It's really quite a complex task for many users, you can look here (https://serversuit.com/community/technical-tips/3-things-you-should-know-about-dns.html) for short explanation too.

Fli
04-18-2016, 09:22 AM
If you have bought your domain from some register service and they can provide you their nameservers for storing your DNS zone data

Many domain registars can allow registering nameservers, like:

ns1.yourdomain.tld -> yourwebhostingserverIP
ns2.yourdomain.tld -> yourwebhostingserverIP

Once it is registered, one can use above registered nameservers for his domain (change domainīs nameservers):

- domainineedtohost.tld
...|__ ns1.yourdomain.tld
...|__ ns2.yourdomain.tld

That way domain redirects visitors to "yourwebhostingserverIP" (the IP is hidden behind nameservers we registered and used for the domain).

Next step i assume would be adding domain name from within your webhosting server control panel. Control panel should create DNS zone automatically and everything should start working (once DNS change is propagated across internet service provider servers in usually 72 hours)

Marco Hardy
07-23-2018, 08:02 PM
I found my idea for business in this article - https://www.templatemonster.com/blog/80-small-business-ideas/,
now I have a profit on buying and selling web domains.: о

kumkum
05-21-2022, 04:22 PM
WHM interface is very easy to manage. If you want to create new WHM account then you can check create account in WHM (https://hoststud.com/threads/steps-to-create-new-website-in-whm.568/).
Login to WHM >> Create aNew Account >> enter details >> Click on Create.