digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Website and Server Troubleshooting (https://www.digitalfaq.com/forum/web-tech/)
-   -   I don't understand how addon domains work in cPanel! (https://www.digitalfaq.com/forum/web-tech/5500-understand-how-addon.html)

via Email or PM 11-04-2013 01:48 AM

I don't understand how addon domains work in cPanel!
 
I want to run a new website. This one is under a new domain name

I guess I can put up this website under the current hosting program running at your server. Or not?
I also guess I could do "things" via cpanel, but I do not manage to get into cpanel.

I tried to study how it all works

Questions I hope you can help me with:
1. how can I put up this website, the easiest, cheapest?
2. how to get into my cpanel?


This question has been split from another post or thread. This was done in order to address the topic more in depth, make it easier to find via forum searches, as well as prevent the other post/thread from going too far off-topic. Please continue this part of the conversation here. Thanks for understanding our tech Q&A policies.


kpmedia 11-05-2013 11:15 AM

cPanel vs. Linux

To help you understand where everything is, I want to go over a few things.

- cPanel is a control panel on top of Linux. But it's still Linux; there's nothing overly special about cPanel regarding users.
- Most webservers use Apache on CentOS, and all user information is stored in the /home/ folders
- Inside /home/ is the files for your domains. Not webpages -- not yet -- but the logs, temp space used by the system, etc.
- The /home/username/public_html/ folder is the default location for sites. Not that I said "default", as it's not a requirement.

Alright, now that that is explained...


Addon domains -- don't use the default settings!

When you go to add a domain in cPanel -- an "addon" domain -- it shares the same home folder with the first domain.

This is different from adding a new account in WHM (the admin part of cPanel), which creates unique home folders for all accounts. Depending on the content of the site, and the resources of the site (which is affected by traffic, the plugins of popular CMS like WordPress, etc), an "addon domain" may or may not be a good idea. If so, great! If not, you'll likely need a reseller account or greater.

(Note: This post is being written for a client. And having an addon is fine for his needs.)

If the default in cPanel is used, it puts all domains as both a subfolder and subdomain of the primary domain. However, the default setting can be a problem -- for security, for SEO, even just for organization.

This concept was explained more in-depth here: http://www.digitalfaq.com/forum/web-...html#post19021

So instead of:
- /home/myuser(primary.com)/public_html/
- /home/myuser(primary.com)/public_html/secondary.com


We want this:
- /home/myuser(primary.com)/public_html/
- /home/
myuser(primary.com)/mydomains/secondary.com

And when accessing it via FTP or the cPanel file manager, that's where the files are for primary.com and secondary.com. Everything is NOT stored in the public_html!

Furthermore, we should delete the unwanted subdomain entries from cPanel's DNS zone editor.

We've done all of this for our client already. ;)


Conclusion

When it comes to domain-to-folder structures, cPanel is more complicated than other control panels. If you're doing it the correct way, that is! And while that may make it seem as if cPanel is not a good panel, it's not the case, While cPanel has some oddities in the way data is organized, it's still the most secure, feature-rich and updated panel out there. Everthing else is junk by comparison. This is just a "feature" that we have to (for now) learn to live with.


All times are GMT -5. The time now is 09:43 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.