Web Hosting Talk







View Full Version : Root directory


realdum
07-27-2003, 04:51 AM
Which is my root directory?
Is it public_html or /home? How do you use cpanel to create a series of folders in the root directory?

runesolutions
07-27-2003, 07:08 AM
If you're the server owner, then your root directory is at '/' (but don't confuse this with your root user's directory which is at '/root').

If you have a virtual domain on a box, then your relative root directory will still be '/' as far as you're concerned and this will translate to '/home/username' on the system.


How do you use cpanel to create a series of folders in the root directory?


A virtual user's root or a server owner's root?

realdum
07-27-2003, 07:29 AM
I am a virtual user. If I create a folder in the root, where would it be? In public_html OR together with public_html and cgi_bin??

Scotty_B
07-27-2003, 07:34 AM
Your webroot would be /home/user/public_html

runesolutions
07-27-2003, 07:45 AM
Originally posted by realdum
I am a virtual user. If I create a folder in the root, where would it be? In public_html OR together with public_html and cgi_bin??


Ok, your virtual user's root is '/' so if you used FTP or file manager to create a folder in your root directory, it would not go into public_html.

Let's say you created a folder called test in your root directory, it would be at the same level as public_html.

/
|
|___public_html
|
|___test


Your web root, however, is the public_html folder. This is the base folder used when you use your domain name, so:

http://mydomain.com/index.html = /public_html/index.html