Subscribe to our eZine
 
Freeing time from IT

PicoSearch
this site

 

Understanding the File System

Domain Name

Each domain name hosted on our system has a "home directory". Within this directory, you store all the HTML files, images, scripts, databases and any other content associated with your website. When logged into the home directory of one of your domains using FTP you will see the following folders:

htdocs

This is the folder that the website for the domain name points to. Inside this folder, you should place your index.htm file as well as any other HTML files, scripts and images that make up your website.

private

This folder is for advanced users. Scripts running on your site have access to this folder but the folder is not directly accessible form the web. You should place any databases your site uses in this folder. If you are using Password Protection for one of your websites, this folder is good place to put your password text file.

logfiles

Every time someone visits your site, the system updates the current log file for your website. Your log files are stored in this folder and you can download them and delete them as you wish.

Your Default Home Page

When your site is accessed on the web using just your domain name, without specifying a particular web page, the server will attempt to find a default file in the htdocs folder to display as your home page. The server will first look for a file called index.html, but if no such file exists it will look for the following files listed below:index.html, index.htm, default.htm, default.html, index.shtml, index.shtm, home.html, index.asp,default.aspHence your home page will need to be given one of the names in the list above to be displayed by default. If the server is unable to find any of the listed filenames in the htdocs folder then it will display the error "Forbidden - You don't have permission to access / on this server".

Writing your own server side scripts

When writing or configuring scripts, such as Perl scripts or ASP scripts for your website you may need to know the full physical path to your website's home directory. This path is as follows:

To find out the paths for your scripts. Download this perl script and put it in you cgi-bin directory. Then goto your browser and www.<yourdomain>/cgi-bin/env.cgi

where yourdomain.com is your domain name (without the 'www').