Zpanel subdomains not working with www - centos

Hello I have server with Centos 6.5 64bit Final i have noticed that my subdomains does not work properly for example if i create subdomain: example.domain.com everything is fine you can type that in your browser and it will work but if somebody will type www.example.domain.com it will fail to open instead of subdomain content that i have created it will open zpanelcp login page.
So my question is what i should do in order to get this working is it domain fault or is it server fault and i need something to fix in actual server?

to create a sub-domain on zPanel just follow this steps :
Login to ZPanel as user
Click "Sub Domains"
Enter sub-domain prefix and select the domain
Use create new home directory
Click "Create"
Now go to your domain dns manager not zPanel dns manager "ex : godaddy ..."
Under A (HOST) You will need to add new record for the prefix of your sub domain with your server ip address
Then click "Save Changes"
your dns resolution my take some time to reflect your changes
good luck.

Related

Whm create cpanel user and access web without domain

i am new in web developmen. usually i use cpanel n hosting but now i try to use dedicated webserver with WHM.
I just create new cpanel user from WHM. And the new user using dummy domain so i can login to cpanel and create database, upload files etc. the problem is i dont have domain yet, is possible to run my web application without domain?
Thx
This is possible. What you would need to do is add the following to the bottom of your hosts file and then load the site from either a new browser or chrome incognito tab so that you are not displayed cached results from a site you have previously visited.
Hosts File Location: C:\Windows\System32\drivers\etc
x.x.x.x mydomain.com
Please note, you will need to replace the X's with the public IP that your domain is set to load from. Once you have done this you should now be able to load your site with the content you have placed in it's directory on your webserver.

I recently started using VPS CENTOS 7.5 kvm [server1] v76.0.15 with cpanel

After configuring the WHM/cPanel the landing page does not show the index.html in public_html rather it is showing the domain registrar details e.g: www.nexnaira.com.
I have deleted all the files in the public_html (cPanel) but it seems not to have any effect like the site is not pointing to the index.html I uploaded. Maybe I am doing it all wrong, please I need assistance
You need to change your default name servers of domain from domain control panel.
Also you need to create child name servers for your domain .
please follow the below tutorial to setup . Once you done setup in your WHM/cPanel, you need to create the same child nameservers using your domain control panel.
Create Child name servers
In order for your domain to display the content it has on your VPS, it is necessary to either register Private Nameservers or point your domain to BasicDNS and then add A record with the IP Address of your server in order to point it to your VPS.
To register Private Nameservers three steps should be taken:
1) register Private Nameservers on the Domain registrar's side;
https://www.namecheap.com/support/knowledgebase/article.aspx/768/10/how-do-i-register-personal-nameservers-for-my-domain
You can find the IP addressees for your Private Nameservers in. Your Virtual server access details should have been sent to your registered email.
2) set up Private Nameserves on the Hosting provider side ( SOA record which states the privary nameserver for your domain, A records for subdomains ns1 and ns2 and NS records) This guide is for your convenience:
https://www.namecheap.com/support/knowledgebase/article.aspx/207/48/how-to-set-up-private-nameservers-vps-and-dedicated-servers
3) point your domain to the Private Nameservers on the Domain registrar's side.
Mind you I am using these reference links because I am using Namecheap hosting services

Plesk and domain hosted externally

I have two hosting accounts (Personal one and a work one). I am doing some testing and would like to create a subdomain of a work domain (manage.domain.com) and host it on my personal account. Currently, my personal host is through 1and1 and is dedicated while the work one is shared with GoDaddy.
Work
I have gone into go daddy and created the subdomain. I have also added DNS records such as A, AAAA AND NS (i did not record a CNAME). I have noticed that if is type manage.domain.com it is redirecting to my personal server. However, it is directing to the blank admin page of the root of the server (which is maintained using Plesk).
Personal
Using Plesk I added the website (domain.com) and created the subdomain (manage.domain.com). I have also updated the websites hosting access using Plesk and assigned it the default values of my personal account. Using Plesk I also set the subdomain to the particular location of the files I want to test. However, I cannot get my server to recognize the address and redirect it to the proper location.
Any help is greatly appreciated!
J
You can just create:
in personal account domain(not subdomain) manage.domain.com
on domain.com add DNS record of type A, name "manage" and IP address of personal hosting:
After that "manage.domain.com" will resolving to hosting of your personal account and can be accessed because such domain exists.
I figured it out
What i did above was correct expect do not change the name servers on the work DNS(godaddy).
Add the website to plesk - it will give you an error about not being able to control the DNS settings which you have already adjusted on the original server (godaddy)
Add a subdomain of the website.
*** Ensure the subdomain is pointed to the correct folder within your server
Done

Host website and emails in different server cpanel

I am having a client who want to keep his website and mails in two separate server. Both are having cpanel hosting. So can someone help me with step to step changes what I need to do ?
Now www.example.com is having cpanel and works fine.
Have another cpanel hosting ready, So what all things I need to do ?
You need to host example.com in two different server, one for website and another for mail service ?
If this is your question, please follow the below steps.
Login to your first cPanel of example.com (for website)
Upload all the files here.
Then, click "Simple DNS Editor" in the same cPanel.
Under "Add an A Record"
Name:mail.example.com
Address :your_mail_server_ip address (ask your mail service provider for this)
And click "Add a Record".
Once this record added.
Goto "MX Entry"
Choose "Remote Mail Exchanger"
Click Change.
Then delete the previous MX record.
Now Add mail.example.com in Destination, Priority is 0 (zero).
Click "Add New Record"
That's it.
Solution No.2:
Upload your contents in cpanel used for website.
Now, Login to your another cPanel used for mail service.
Go to "Simple DNS Editor" under Add an A Record
Name: example.com
address : A record IP address of your website server.
Create email id in email server (cPanel) and start using the mails and website in different server.
Hope this helps you.
Solution No.3:
If this confusing you. contact your hosting provider with MX record and its IP address.
Ask them to update that MX record from their end.

Setup SmarterMail on IIS as subdomain

I am surprised there is not more information out there about this. I assume it is a fairly common issue.
My situation: I have a vps that I have setup a website on (http://honeybadgertech.com/) and I would like to add email also. Preferably on a subdomain such as mail.honeybadgertech.com. I have done the basic installation of smartermail but cant find instructions on how to configure it to run on IIS as a sub-domain. I have setup many websites in the past but I have no experience with email at all. Can anyone help me with the details of setting up smarter mail on a sub-domain? or would it just be easier to register a separate mail domain from godaddy to run the email?
Ok so here is how I was able to get running.
Install download
Setup sub-domain in IIS
Add A or CNAME Record for sub.yourdomain.com
Add MX Record for yourdomain.com
Add reverse DNS record (if possible)
Hope this helps someone!
You can make the following changes in IIS to access the mail.domain.com.
Start >> Administrative tools >> IIS.
Select SmarterMail Website.
Click on Bindings. Add new binding with port 80. (By Default Smartermail runs on the 9998 port)
In the host header value box, add mail.domain.com.
Click Ok.
Now, you can access the SmarterMail with http://mail.domain.com in your browser.