Publishing your website

This page documents everything you need to know about publishing your website on Anchor web hosting.

This will contain all the necessary information to get your website up and running on the Internet.

Of course if you require assistance with any of these instructions we offer free support and can be contacted either at: support@anchor.com.au or by phone on 1300 883 979

File Locations

When you connect to your web hosting account via FTP or SSH you will be located in the 'home' directory of your hosting account.

This directory is:

/home/USERNAME/

Under this location there will be two directories:

public_html/ 
cgi-bin/ 

The path to your home directory may also be written as:

~USERNAME/ 

Public_html directory

All files which you wish to access via your website must be placed in the public_html directory. Files to be placed in this directory include files with extensions such as:

*.html
*.htm 
*.php 
*.gif 
*.jpg 
*.png

A file located in:

/home/USERNAME/public_html/myhomepage.html

has a URL of:

http://www.mydomain.com.au/myhomepage.html

To have your customers see the appropriate page when they enter www.yourdomain.com.au into their web browser, you need to follow a naming convention that allows our computers to identify and send the appropriate file. Anchor's web servers are configured to look for files with the following names, in this order:

  1. index.html
  2. index.htm
  3. index.shtml
  4. index.cgi
  5. index.php
  6. index.php4
  7. index.php3
  8. index.jsp
  9. default.htm
  10. default.html

The first match found in the list will be used as the homepage for your website. You cannot use any other file names for the home page of your website.

cgi-bin directory

All cgi scripts should be placed in the /home/USERNAME/cgi-bin directory

This includes scripts written in Perl, Python and Tcl. PHP code must be placed in the public_html directory, NOT the cgi-bin directory.

Home directory

Files which you don't wish to be publicly accessible can be stored in the home directory.

Disc quotas

Disc quotas are in place on all web hosting accounts. Quotas prevent you from exceeding your allocation of disk space on Anchor's servers. If, for whatever reason, you exceed your quota, you will receive an error message, and won't be able to upload any more files until you delete some of your existing files or contact Anchor and arrange to have your quota increased.

Disc quotas are implemented to protect the integrity of the web-server, and ensure that we can offer a reliable service to all our customers.

To increase the disc quota on your web hosting account, please Contact us

File Permissions

In general you should not need to adjust the permissions of files in your public_html directory.

All files located in the public_html directory should be:

  1. Owner: read + write
  2. Group: none
  3. Other: read

This can be achieved using the following command at the command prompt or via the web based file manager located in your control panel:

chmod u=rw,g=,o=r file.name

CGI files such as formmail should be:

  1. Owner: read + write + execute
  2. Group: none
  3. Other: none

This can be achieved using the command:

chmod u=rwx,og= file.name

at the command prompt or via the web based file manager located in your control panel.

PHP files should be:

  1. Owner: read + write
  2. Group: none
  3. Other: none

This can be achieved using the command at the command prompt or via the web based file manager located in your control panel:

chmod u=rw,og= file_name