UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Web Hosting Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-2008, 13:28
Junior Member
 
Join Date: May 2008
Posts: 13
Default cPanel Best File Structure Set Up.

Hi,
I'm trying to run a couple of duplicate sites on eUK to compare with my current host.
I've used a spare domain to set up the main site.
I'm familiar with h-sphere & not the cpanel directory structure. I've looked at cpanel tutorials & documentation & they all tell me how to do stuff, but not why I might want to do it. Maybe someone can answer the following questions or point me in the right direction for additional info.
Q1) What is the difference between the public_html folder & the www folder, I see that default permissions are different.

Q2) I'll be using add on domains. If these are added as separate folder in public_html, they are lost within all the folders of main site. Can the main web site hosting be tidied up into a single folder?

Q3) In answer to multiple domain question, cPanel - The Leading Control Panel, suggests adding domains outside of public_html folder: "Your account will have a main domain associated with it in order to keep track of the account. Then, simply add more domains through the Addon Domains area in cPanel. You will probably want to add them outside of your public_html directory in order to keep track of them easily.
Your main domain will be located at /home/username/public_html. You can then add domains in directories like this:
domain2.com -> /home/username/domain2.com/
domain3.org -> /home/username/domain3.org"
I'm assuming this works, but thought all web stuff had to be in public_html or www folders?

Q4) One of the sites I want to bring across contains a Wordpress blog/site. I know I will have to change a couple of files & the .htaccess file & set up a database, but will there be any files/folders that should live outside of public_html?

Q5) Would it be better to use Fantastico to create a new Wordpress blog (v2.5) & then change / add my pages?

Thanks in advance, Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 18:03
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 457
Default

Quote:
Originally Posted by Euroman View Post
Q1) What is the difference between the public_html folder & the www folder, I see that default permissions are different.
There is no difference, www folder is soft link to the public_html folder.

Quote:
Q2) I'll be using add on domains. If these are added as separate folder in public_html, they are lost within all the folders of main site. Can the main web site hosting be tidied up into a single folder?
Yes, the answer is in your next question. Add them as separate folders parallel to your public_html folder.

Quote:
Q3) In answer to multiple domain question, cPanel - The Leading Control Panel, suggests adding domains outside of public_html folder: "Your account will have a main domain associated with it in order to keep track of the account. Then, simply add more domains through the Addon Domains area in cPanel. You will probably want to add them outside of your public_html directory in order to keep track of them easily.
Your main domain will be located at /home/username/public_html. You can then add domains in directories like this:
domain2.com -> /home/username/domain2.com/
domain3.org -> /home/username/domain3.org"
I'm assuming this works, but thought all web stuff had to be in public_html or www folders?
That is very much correct. The folder that will be created outside of your public_html folder will be the web folder for your sub domain.

Quote:
Q4) One of the sites I want to bring across contains a Wordpress blog/site. I know I will have to change a couple of files & the .htaccess file & set up a database, but will there be any files/folders that should live outside of public_html?
No. And there should not be any need to change any thing within the files except the DB information in wp-config.php

Quote:
Q5) Would it be better to use Fantastico to create a new Wordpress blog (v2.5) & then change / add my pages?
The best way to do it will be:
1. Just to copy the blog folder from the old host to your space with us
2. Create the DB
3. Restore the DB
4. And change the DB information in wp-config.php
That should be enough.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 20:52
Junior Member
 
Join Date: May 2008
Posts: 13
Default

Ok that's great. Thanks for your comprehensive answers.
Just so I'm crystal clear, the public_html folder is in effect my 'domain#1' folder?

Can it be renamed to the domain name?
Can ftp access be restricted to just this folder or does it access the whole account?

Thanks, Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-06-2008, 22:28
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,771
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by Euroman View Post
Ok that's great. Thanks for your comprehensive answers.
Just so I'm crystal clear, the public_html folder is in effect my 'domain#1' folder?

Can it be renamed to the domain name?
Can ftp access be restricted to just this folder or does it access the whole account?

Thanks, Mark
Don't rename public_html folder as your website hosting will stop working as soon as you rename public_html.

You can add a new FTP account from FTP manager and set permission for that FTP account to access any specific folder or whole public_html depending on your requirements.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-06-2008, 06:52
Junior Member
 
Join Date: May 2008
Posts: 13
Default

Thanks again for the help. the help on this forum is very impressive.

I've got one web site hosting duplicated onto eUK now. But I really need to point my nameservers here to give it a good test as the web site hosting uses a lot of absolute links & they go straight back to the original web site hosting - doh!

Thanks, Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 19:05.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service