Setting the web root

This is a discussion on "Setting the web root" within the Hosting & Domains section. This forum, and the thread "Setting the web root are both part of the Hosting Related category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Hosting Related > Hosting & Domains

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Mar 14th, 2006, 05:07
New Member
Join Date: Mar 2006
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Setting the web root

This may be a dumb question but I'm pretty new to web development. I've got a windows shared hosting account with godaddy and I want to place some files above the web root for security purposes. The problem is that the root of the ftp space is the same as the web root. I contacted the host and so I know what my absolute server path is, but I just don't know how to upload files to any directory higher than the web root.

Any help or suggestions would be most appreciated.

Thanks in advance,

--carriker

Last edited by carriker; Mar 14th, 2006 at 08:28.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 14th, 2006, 12:35
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Setting the web root

Typically, the web directory is something like this on shared hosting plans: /public_html/ or /www/

So, I'd guess that if you setup your FTP application to NOT point into one of those directories by simply leaving your 'directory path' blank, or maybe using a single forward slash: /

I'm not 100% sure, so you'll have to try it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 14th, 2006, 14:20
New Member
Join Date: Mar 2006
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Setting the web root

Thanks herkalees, but I'm still having some trouble.
I'm using dreamweaver 8 for ftp and I tried just using a single slash '/' as my host directory and it will let me connect just fine but when I try to upload anything to that directory it tells me that permission is denied.

This is what I was told from my provider about how my server path is setup:

your full server path is /home/content/u/s/e/username/html, where 'u', 's', and 'e' are replaced by the first three letters of your hosting username, and 'username' is replaced by your username.

I tried a lot of different things but the only way I have had permission to connect and upload files via ftp is if I set my host directory as '/username/'. From the information my provider sent I thought that maybe there is supposed to be an "html" directory beneath the "username" directory that acts as the web root, but in reality anything in the "username" directory is visible to the web.

I do appreciate any advice I can get, and I'll probably pester my provider some more. I just can't believe it would be this difficult to place files above the web root.

Thanks again,

--carriker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 14th, 2006, 17:58
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 163
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Setting the web root

Usually an FTP account will give you access to your internet root as well as possibly another folder for databases and maybe your logs.

When you just FTP normal into the website do you see these folders?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 14th, 2006, 18:30
New Member
Join Date: Mar 2006
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Setting the web root

The only subdirectory visible through ftp was named "aspnet_client" and it has a subdirectory called "system_web" which has some subfolders containing a couple of .js files. But if I try to upload anything into the "aspnet_client" folder or lower it tells me I don't have permission to do so. So, the only place for me to upload files is the root of the ftp area which is also the root of my web space. And of course I can create my own subfolders and subdomains which appear on ftp and I can upload to them.

Also, I can create custom folders that are password protected. But it defaults to the same user name and password as my hosting account and I have no clue how to change the protection settings. It's a windows server so I don't think it's using .htaccess and .htpassword, but even if it was I couldn't find and modify them.

Thanks again for all your help. In the not too distant future I'll be moving the site to a dedicated server anyway, but for the moment I'd really like to get this figured out.

--carriker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 14th, 2006, 18:47
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 163
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Setting the web root

If that is the only thing that you see, it sounds like you are in the root as soon as you FTP into the website.

If you want a folder (like I suggested earlier) higher up - it sounds like you do not have permission to move "higher" up
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
setting, web, root

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
help setting accesskeys minute44 PHP Forum 6 Jan 8th, 2008 16:10
Can I put style sheet in the root folder that targets a specific html page badger Web Page Design 3 Jul 14th, 2007 17:35
phpMyAdmin - how do I give it my root password? Colm Osiris Databases 1 Nov 7th, 2006 15:10


All times are GMT. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42