June 05, 2006

From Registering A Domain To Getting It Online (Part 3)

After you have opened an account with a web host and set the DNS you can start uploading your web pages. The most common way to do this is to use FTP (File Transfer Protocol) software but there are also some other options.

FTP is an Internet Protocol (like HTTP) that allows data files to be transferred from one computer to another. Your web host will provide information about how to connect to your site using FTP. Usually you use FTP software such as WS_FTP or FileZilla to connect to the FTP server on your website. The address of the FTP server is usually ftp.mywebsite.com (where mywebsite.com is the domain name).

Your host will also tell you the location where files should be uploaded. Your account will probably have two main folders in the root directory – public_html and www. Your web pages should be uploaded to the public_html folder. The www folder is a mirror folder which allows people to find your site by using either www.mysite.com or mysite.com.

You may have to adjust a few settings in your FTP software to upload files correctly. For example, if you are using a firewall on your computer you should set the transfer method to passive. If you are using a proxy you will have to adjust the proxy settings.

Files can be sent or received in either binary or ASCII mode. If they are transferred using the incorrect mode they may end up with errors on completion of the transfer. Your FTP software may try to determine which mode to use by examining the contents of the files, or you may have to manually specify the transfer mode. Files that should be sent in ASCII mode include HTML (and variants like HTM, SHTML, DHTML, etc.) TXT, CGI, C, ASP, JS etc. Basically, any file that can be viewed in a text editor should be transferred in ASCII mode. Binary mode, on the other hand, is used to transfer everything else – graphics, compiled programs, and media files.

Using the FTP software, make a connection to your web server. Browse to the folder where you want to upload files (usually by clicking on the folder icons) and then find the local files you wish to upload. Whole directories or individual files may be uploaded.

You can name most of the pages of your website anything you like, but there is one essential file in each directory – index.html or a variant (index.htm, index.shtml etc). This means that your home page has to use this name. The home page can be viewed by typing http://mywebsite.com or http://mywebsite.com/index.htm. In the first case, if there is no file named index.htm the contents of your root directory will be shown. Without an index file in each directory, anybody who browses to that directory can see all the files there. This presents an enormous security risk as well as exposing private information to public view.

FTP is the most common way to upload files to your website but is by no means the only way. Some web authoring packages have built in transfer methods to automatically upload your entire site or individual pages. Microsoft FrontPage is an example of this type of transfer method. In order to take advantage of it you need to have FrontPage extensions installed on your website. You can request this feature from your web host. Other authoring packages have built-in FTP software so that you can build your site and upload with one familiar interface.

You can also build sites online. Some web hosts give you access to browser controlled software that allows you to lay out web pages. Once you are finished the page is automatically saved to the proper location on your server. This type of web builder is usually available through the control panel of your hosting account.



AddThis Social Bookmark Button


Posted by WebHost at 11:50 PM | Comments (0)

May 31, 2006

IP Addresses

Every server on the internet is assigned a unique number – an IP (Internet Protocol) address. This number can be thought of as a 'telephone number' which allows other computers to find and access files no matter where they are. The IP address is 4 bytes (32 bits). Each byte is known as an octet and can have a value between 0 and 255, so IP addresses are written in the form of 123.456.78.9.

IP addresses of 32 bits theoretically allow for more than 4 billion unique addresses, but in practice the actual number is much less. Certain ranges are reserved for special purposes so the number of available IP addresses is limited. Web sites can get around this limitation by using shared hosting or virtual servers. Rather than using one server for one web site, shared hosting allows several sites (sometimes hundreds) to be hosted on the same server. Each of these sites has the same IP address. They are uniquely identified by their domain name (e.g. mydomain.com).

There are plans to expand the number of IP addresses with the introduction of version 6 (We currently use version 4) of the Internet Protocol. IPv6 has IP addresses which are 128 bits wide. This provides an almost unlimited number of unique addresses, but will take several years to implement because of the heavy cost of upgrading the Internet infrastructure.

Shared hosting solves the problem of limited IP addresses for web sites, but there is also a need for IP addresses for each personal computer which connects to the Internet to browse the web or send email. Rather than assign each PC a unique IP address, Internet Providers can use a system of 'dynamic addresses'. This means that each time you connect to the Internet through a dial-up or DSL modem you are assigned a different IP address.

So far we have been discussing how to use a web hosting company to host a web site, but there is no reason why you can't host a site on your home computer. The biggest technical difficulty for most people, though, is that they connect to the Internet using a dynamic IP address.

Dynamic addresses make it difficult to host a web site from home. Since the IP address is constantly changing nobody would be able to find your site unless you somehow notified them of your current IP address. There are dynamic DNS services, however, which allow you to assign a domain name to a site with a dynamic IP address. Each time you are assigned a new address your computer automatically notifies the service, which in turn updates its DNS (Domain Name Server).

Hosting a web site on your home computer, however, may not be a good idea. The computer has to operate server software and needs a high speed Internet connection. Your home Internet connection is probably a lot slower than those used by hosting companies so your web pages may load slowly – especially if they have a lot of graphics. If you have a small personal site with few visitors, though, it may be feasible to host your own site. Dynamic DNS is available as either a free or subscribed service.


AddThis Social Bookmark Button

Posted by WebHost at 01:33 PM | Comments (0)