View Full Version : Creating Directory Above Root
TheWebScaper
2009-08-17, 04:52 PM
Hi,
I need to create a directory above my site's root directory, but when I FTP into my account it automatically takes me to the root directory. Is there any way that I can get access above the root?
Thanks in advance.
birge
2009-08-18, 07:22 AM
TheWebScaper,
I am not sure if what you ask is possible but I will ask our technical team and get back to you.
Birge
Community Manager
birge
2009-08-19, 04:08 AM
Hi again,
I talked about your question with our technical team and they are saying that, It actually depends on the account. Windows 2008 accounts you can, but windows 2003 and linux you can't however you can create folders in your logs and tmp folders on the linux accounts which are outside of the root folder (/docs). We checked that your account and all of your Windows hosting plnas are Windows 2003-based. Our customer support might e able to help you to Windows 2008 if you really need this feature.
You can visit myhosting.com - Need Help? Our 24-7 In-House Customer Support Service is ready to assist you (http://myhosting.com/help/).
Regards,
Birge
CM
TheWebScaper
2009-08-19, 10:49 PM
Hi Birge,
Thanks for checking! The account for which I need to create the directory is a client site of mine - domain is oxfordrescue.org. It is a basic hosting on Linux.
I think it would be fine to use either the logs or temp folder and create a sub-directory in there. How do I access them, however? When I FTP in, I do not see those folders. I also am not seeing those directories through File Manager.
If this is something support needs to help with I can contact them. Thanks for your help so far!
Kym
birge
2009-08-20, 03:18 AM
Hi,
In this case, it's better to contact with support team, since this kind of technical issues are way ahead of me. They'll help you better =)
Let me know if you have another questions.
Birge
CM
birgeb@softcom.com
sgoodman
2009-11-06, 03:03 AM
I need to create a directory that contains passwords, so the directory must not be publicly accessible. The only way to do this (that I know of) is to create it above the root folder (docs). However, when I tried to create the directory, my FTP program gave me error #550 "permission denied". I also tried to create the directory using MyHosting's browser-based File Manager, but I wasn't able to navigate above the root folder.
Did you contact support? What did they say?
Thanks,
Shane.
nickh
2009-11-06, 09:51 AM
Hi Shane. You can do this quite easily with an Apache htaccess file.
Create the directory that you'd like to store your protected files in. This directory can be located anywhere in your website's directory heirarchy.
Next, create a file named ".htaccess" (without the quotes) in that directory, and put the following Apache directives in it:
IndexIgnore *
Order Allow,Deny
Deny from all
Now create some files and directories in your protected directory, and try to view them in a web browser. You should receive an HTTP 403 Forbidden error.
If you have any questions, just holler!
-Nick