#1  
11-04-2013, 01:48 AM
via Email or PM via Email or PM is offline
Free Member
 
Join Date: Dec 2011
Posts: 173
Thanked 0 Times in 0 Posts
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.

Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-05-2013, 11:15 AM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 376 Times in 342 Posts
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.

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How do add-on domains work in cPanel? How to avoid subdomains? kpmedia Web Hosting 3 07-19-2016 09:26 AM
How to use/manage hosting with multiple domains? (Stablehost?) moonguide Web Hosting 10 11-19-2013 03:29 PM
How to create an addon domain in cPanel Brent Web Hosting 0 08-25-2013 08:44 PM
Don't understand DVDFab for Mac - How to use? Sossity Copy DVDs, Duplicate, Replicate 6 01-05-2012 11:21 PM
MIME type for XPI files (Firefox addon installers) admin Website and Server Troubleshooting 0 12-22-2011 06:38 AM

Thread Tools



 
All times are GMT -5. The time now is 08:56 AM