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
Contents
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:
- index.html
- index.htm
- index.shtml
- index.cgi
- index.php
- index.php4
- index.php3
- index.jsp
- default.htm
- 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:
- Owner: read + write
- Group: none
- 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:
- Owner: read + write + execute
- Group: none
- 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:
- Owner: read + write
- Group: none
- 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
