counter

free web page counter
Provided by website-hit-counters.com .

Saturday, October 24, 2009

From Registering A Domain To Getting It Online

Before getting a web site on line you need to have a domain name. These are the familiar web addresses such as mywebsite.com that most browsers use to find a particular web site. Domain names, in fact, are pointers to a particular IP address and we use them because they are easier to remember than a series of numbers.

All websites have an IP address in the form 123.456.78.9. The domain name system translates these numbers into names such as mywebsite.com. All domain names are registered in a central registry maintained by InterNIC, a subsidiary of ICANN — the organization which certifies domain name registrars. Domain names are filtered through Domain Name Servers (DNS) which link IP addresses with domain names. Each web site usually has a primary and a secondary DNS – duplicates that increase reliability.

The first step in registering a domain name is to choose it. The name can be almost anything you want, but to be most effective it should reflect the nature of your website. If you are selling watches, for example, it helps to have a domain name that has some reference to watches – A1-Watches.com for example.

The rules for domain names are simple – only letters, numbers or hyphens are allowed. Other than that, a domain name is limited to 70 characters, but you are advised to keep it as short as possible. Domain names can be upper or lower case – case is ignored by DNS but you can use a combination to make the name more recognizable. MyWebSite.com is easier to read than mywebsite.com, but both are identical to the DNS.

There are several extensions available. The most common is .com — it has even entered common vocabulary as a way to express Internet activity – (I own a dot com business). Other extensions include .biz (for commercial sites), .org (for non-commercial organisations), .net (for organisations involved in Internet infrastructure) and .name (for personal names). There are also extensions with more specialized uses such as .museum, .aero, and .coop and are used exclusively by members of certain organizations. In addition to these common extensions, there can also be a country code extension such as .us (United States) or .de (Germany). The rules for using country extensions vary, so you need to check with your registrar to see if they are available to you.

All domains must be registered with a registrar that has been certified by ICANN (Internet Corporation for Assigned Names and Numbers). There are hundreds of registrars and their prices vary considerably. The full list of registrars is available at the InterNIC website (http://www.internic.net/regist.html). Although registrars are closely regulated, they are permitted to offer their services through third parties, so many web hosts offer a domain name registration service even if they are not a registrar. The price of a domain name will usually be higher when dealing with these third-party services.

Domain names are usually registered for a minimum of one year, although you are permitted to buy up to a 10-year registration contract. Usually the longer the registration contract, the lower the price, so if you are sure you will be on the web for a considerable length of time you can benefit from a longer registration period. Most registrars also offer a discount on bulk purchases. If you own a number of domain names you can save money by transferring them all to the same registrar.

You have selected a domain name, registered it and signed up with a web host. What’s next? Your web host has to provide you with details about how to get your site up and running. This information includes passwords to get into your account, paths to directories where your files should be uploaded, and most importantly, what your domain name servers are.

Domain name servers (DNS) provide the link between your domain name (mywebsite.com) and your Internet Protocol (IP) address. The IP address is a series of numbers like this: 123.456.78.9. Every web server has a unique IP address which, in the case of dedicated servers hosting a single domain, is equivalent to the domain name. A site hosted on a dedicated server will respond to either 123.456.78.9 or mywebsite.com by serving the requested webpage.

Most websites, though, are hosted on shared servers. This means that one server is home to many different websites, but they each have the same IP address. If you type in a shared IP address you will get an error page or will be redirected to the web hosting company’s web site. So DNS is necessary for websites on shared servers. Domain names are the only way to request these websites – they cannot be requested by IP address.

Configuring DNS

When you first purchase a domain name, it will be registered on the DNS of the registrar. Until you arrange for a web host, the registrar company will usually redirect requests for your domain name to an error page or an ‘Under Construction’ page. Note that there is no time limit between buying a domain name and finding a host. Some people purchase domain names without ever intending to build a website on them. Most people, though, buy a domain name with the intention of using it. To do that, you need to open an account with a web host and prepare to transfer your site to their server. Part of the process of preparing your site for publication on the World Wide Web is to alert your domain name registrar of the DNS of your new server.

A DNS configuration looks something like this:

Primary Name Server: NSA.NEWDAYDNS.COM (204.50.14.2)
Secondary Name Server: NSB.NEWDAYDNS.COM (204.50.22.2)

This information is available from your hosting company either in their informational package that they email to you, or on their website. If you can’t find the DNS it’s best to contact your web host and ask for it. Once you have the DNS information you can usually enter it into your account on the website of your registrar. If you have purchased your domain name from the hosting company, they will usually make the necessary changes for you when they set up your account.

When the DNS is registered or modified (when changing web hosts) it can take up to 24 hours for your site to be accessible from everywhere in the world. This is because domain names are registered in a distributed data base that is maintained on thousands of computers around the world. Each computer has a small part of the database in cache, and if they receive a request for an unknown domain that request has to be forwarded to another computer until the information is found.

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.

Multiple Domain Web Hosting

Thanks to the low cost of domain names and hosting fees it is possible to own several websites without breaking the bank. There are several ways to manage multiple domains so it is important to know what your options are and the advantages and disadvantages of each method.

The most basic choice when administering multiple domains is whether or not to do so with the same host. Most hosts offer packages which can be set up to allow several sites on one account, or allow individual sites to be operated under separate accounts.

You may have an existing website and are happy with the services your host provides. If you decide to start a new website using the same host, you will have the reassurance of dealing with a company you are familiar with and trust. You may also get a discount for each additional account you open with the same host. On the other hand, using a new host for a second (or third or fourth) website can allow you to compare the quality of hosting offered by different companies. In addition, separate hosts will provide each of your web sites with a different IP address.

Having different IP addresses can be an important factor if you plan to link the sites together to aid in search engine optimization. Incoming links are an important indicator of the importance of a website, so a site with a lot of incoming links can get a higher position in search engines like Google. If all the links are coming from the same IP address, however, their value may be discounted. Hosting your various sites with different hosting companies guarantees that each site has a different IP address. Individual IP addresses, however, are available as an extra from most web hosts. For a yearly fee each website can have its own unique IP address. This can help with search engine ranking and is also needed if you want to have a secure connection (https) on your site.

If you decide to host all your sites with the same company, there are three basic ways to go. Each site could have its own account; you could sign up for a re-seller account; or you could get a dedicated server account.

As a re-seller you are acting as an agent for the hosting company. You are allocated a certain amount of disk space and bandwidth and you are free to use them as you please. There may be a limit to the number of websites you can host with your re-seller account, but if there is space left over after using this account for your own sites you could earn some extra income by selling accounts to other people. The advantage of a re-seller account is that all the technical details are taken care of by the hosting company. Some will even provide gateways for billing your customers.

A dedicated server account gives you control of all the resources of an entire server. You are free to setup as many websites as you wish and allocate disk space and bandwidth as you see fit. The downside to this type of account is that you are responsible for maintaining the server. This can require a significant level of technical know-how so if you don’t have that knowledge or don’t feel like learning about it, dedicated servers are not for you. You can, of course, go with a managed dedicated server. The downside of this is the higher cost involved.

Hosting all your sites with one host can offer lots of advantages but there is one major disadvantage – if your server goes down, all your sites go down. If you are depending on your sites for income this can be a disastrous situation. For this reason, it is a good idea to have at least one of your sites with a different host. If your sites are essential for your livelihood and you can’t afford any down time whatsoever, you would be advised to host everything with (at least) two hosts.

Multiple Domain Web Hosting

Thanks to the low cost of domain names and hosting fees it is possible to own several websites without breaking the bank. There are several ways to manage multiple domains so it is important to know what your options are and the advantages and disadvantages of each method.

The most basic choice when administering multiple domains is whether or not to do so with the same host. Most hosts offer packages which can be set up to allow several sites on one account, or allow individual sites to be operated under separate accounts.

You may have an existing website and are happy with the services your host provides. If you decide to start a new website using the same host, you will have the reassurance of dealing with a company you are familiar with and trust. You may also get a discount for each additional account you open with the same host. On the other hand, using a new host for a second (or third or fourth) website can allow you to compare the quality of hosting offered by different companies. In addition, separate hosts will provide each of your web sites with a different IP address.

Having different IP addresses can be an important factor if you plan to link the sites together to aid in search engine optimization. Incoming links are an important indicator of the importance of a website, so a site with a lot of incoming links can get a higher position in search engines like Google. If all the links are coming from the same IP address, however, their value may be discounted. Hosting your various sites with different hosting companies guarantees that each site has a different IP address. Individual IP addresses, however, are available as an extra from most web hosts. For a yearly fee each website can have its own unique IP address. This can help with search engine ranking and is also needed if you want to have a secure connection (https) on your site.

If you decide to host all your sites with the same company, there are three basic ways to go. Each site could have its own account; you could sign up for a re-seller account; or you could get a dedicated server account.

As a re-seller you are acting as an agent for the hosting company. You are allocated a certain amount of disk space and bandwidth and you are free to use them as you please. There may be a limit to the number of websites you can host with your re-seller account, but if there is space left over after using this account for your own sites you could earn some extra income by selling accounts to other people. The advantage of a re-seller account is that all the technical details are taken care of by the hosting company. Some will even provide gateways for billing your customers.

A dedicated server account gives you control of all the resources of an entire server. You are free to setup as many websites as you wish and allocate disk space and bandwidth as you see fit. The downside to this type of account is that you are responsible for maintaining the server. This can require a significant level of technical know-how so if you don’t have that knowledge or don’t feel like learning about it, dedicated servers are not for you. You can, of course, go with a managed dedicated server. The downside of this is the higher cost involved.

Hosting all your sites with one host can offer lots of advantages but there is one major disadvantage – if your server goes down, all your sites go down. If you are depending on your sites for income this can be a disastrous situation. For this reason, it is a good idea to have at least one of your sites with a different host. If your sites are essential for your livelihood and you can’t afford any down time whatsoever, you would be advised to host everything with (at least) two hosts.

UNIX versus Windows Hosting

When browsing through the offerings of various web hosting companies you are sure to notice that some offer UNIX hosting and others offer Windows. Some hosts even offer a choice of the two operating systems. What are the differences and which one is better?

First of all, when choosing a host, it doesn’t matter what kind of operating system you develop your web site on or what you use on your own computer. Web sites hosted on both UNIX and Windows servers are universally accessible because the data they serve is identical. The difference lies solely in the software used to serve that data.

In terms of reliability UNIX systems have a slight advantage. They are known to extremely stable and able to run for years without rebooting. Windows is also very reliable – slightly less so than UNIX but still able to handle the demands of modern web sites.

The majority of web hosts use various flavours of UNIX like Linux and FreeBSD. These operating systems are free and reduce the costs of a hosting operation. Windows costs thousands of dollars so some hosts charge extra for Windows accounts if they offer both types.

As well as being free, Linux and the other UNIX varieties are open-source software. Anyone can alter the source code and make improvements, updates, and additions. There is a large pool of dedicated enthusiasts who use their free time to work on this software. Windows, on the other hand, is Microsoft proprietary software so users are dependent on Microsoft to release updates. There is no way for an individual user to modify the code.

The main difference between the two types of operating systems is the type of software each can run. Windows is suitable for Microsoft products such as MS Access databases, ASP for delivering dynamic content, and VBScript for site enhancements. UNIX cannot accommodate these technologies so if you absolutely need ASP or VBScript you should pick a Windows host. UNIX hosts deliver dynamic content by using software such as PHP, CGI, and MySQL – technologies which are also available on Windows hosts.

Windows is necessary for hosting Windows media files such as videos and audio. Other types of media such as MP3, Flash, Shockwave and Real can be handled by either UNIX or Windows. Websites created in Microsoft FrontPage (a graphical HTML development package) can also be hosted on either type as long as MS databases or dynamic content are not included for use on a UNIX host.

Which is Best?

Before deciding which type of hosting to use for your website, consider carefully what kind of technologies you will need. Do you need a dynamic site? Will you have multimedia content such as streaming video or audio?

Both UNIX and Windows can provide dynamic content with PHP, MySQL, as well as CGI, and there are thousands of dynamic scripts readily available. Multimedia can also be hosted by either type of server, although Windows media (WMA and WMV) need to be hosted on a Windows server.

If you absolutely need Microsoft databases, ASP, and Windows media you have to go with a Windows host. Otherwise most websites are probably better off with a UNIX host. The advantages of UNIX over Windows include greater choices in web hosts, slightly better reliability, and (sometimes) cheaper hosting costs.

Disk Space

Every hosting account has a certain allotment of disk space. The disk space is used to hold all the files which make up your web site – HTML files, graphics, scripts, and multi-media content. Usually the more expensive the hosting package the more disk space and the more bandwidth you receive.

A basic web site with just a few pages requires less than 1 MB of disk space. As you add more content and include things like downloadable files, pictures, music, and video you will require more disk space. Email also takes up disk space. If you have an account with a small disk allotment you may find that unsolicited SPAM may be eating away at your disk allotment. It’s always a good idea to go through your inbox from time to time to delete unnecessary emails.

What will happen if you use too much disk space? Each web host has their own policy about this but it’s safe to say that you will be charged for the extra space. Often this penalty is much higher than regular rates for disk space so it’s important to keep an eye on how much space you are using and if you are approaching the limit, either purchase more space or delete some files.

How can you tell how much space you are using? Most hosting packages have a control panel for making adjustments to almost every aspect of your account. These control panels usually tell you how much disk space is being used and may also rate it against your allotment so you can see at a glance if you are approaching your limit. If your hosting account does not have this feature you can judge the amount of space by downloading your entire site to a folder on your personal computer in order to check how much space it takes.

As a rough guide, consider that an average web page (3 graphics and 2 screen lengths of text) takes about 20 kb (to be generous). At this rate, a hosting package with 10 MB can have about 500 pages. Since most small sites are less than 50 pages 10 MB should be plenty to get started. But what about databases? They are usually calculated separately from your disk allotment but check with your web host to see what their policy is.

If you place music or video files on your website your need for disk space (and bandwidth) starts to take off. A typical 3 minute MP3 file takes about 2.5 to 3 MB of disk space. A short video (very poor quality) can take 1 MB. A good rule of thumb for those wishing to host multimedia is to estimate the total size of the files and get an account with double that space. This will allow for future expansion. Always check with your web host, though, before placing sound or video files on your website. Some have policies against this type of content because it places a strain on the bandwidth allotment – a serious consideration with a shared hosting package.

Bandwidth

Bandwidth is a term that has several different meanings depending on the context. When talking about bandwidth in terms of Web Hosting it refers to the amount of data that transfers into and out of your web hosting account. Incoming data can include requests for web pages, email, FTP requests, and FTP uploads, while outgoing data includes file transfers, web pages, and email. Each hosting account is allocated a certain amount of bandwidth per month. Common figures for bandwidth range from 3 GB for small personal sites up to 200 GB for large business systems.

How much bandwidth do you need? This depends on the amount of traffic your website receives as well as the content. Web pages made up of text and a few pictures are very small in size but if you get thousands of visitors each day you may need a lot of bandwidth. On the other hand website content consisting of downloadable files such as software, music or video is much larger in size, so even if your traffic is fairly low you may need extra bandwidth.

The best way to calculate the amount of bandwidth you need is to calculate the size of your downloadable content and multiply by the number of visitors you receive each month. Add to that the number of emails sent and received and other content such as FTP uploads. The figure you come up with should be pretty accurate because it is unlikely that every visitor to your site is going to download every file or view every page. This will give you a bit of margin to play with.

As your web site grows and as you receive more traffic you may have to increase your bandwidth allotment accordingly. It is better to plan ahead and arrange with your web host for a larger hosting package rather than wait until you go over your limit. Check with your host to see what their policy is in regards to exceeding your bandwidth. Some will allow you to go over by a certain amount while others will shut down your site and demand that you upgrade your account before resuming service. It is always best to keep track of how much bandwidth you are using and anticipate when you need to upgrade.

If you feel that you have sufficient bandwidth and would prefer not to upgrade you may be able to ‘throttle’ traffic if you are approaching your monthly limit. Some hosts offer this service as a way to limit incoming requests or to exclude requests once a certain number has been reached.

There are several throttling options. You can limit the number of incoming requests by specifying an idle time between requests. This causes incoming requests to be delayed by a specified amount of time if too many are arriving at once. Other options are to impose a limit on data transfer within a certain time period or to limit the number of requests for a certain file. The speed of transfers can also be capped at a certain level. Throttling may not be a good idea if you depend on web traffic for your business. If your pages are slow to load or if users can’t access files they are looking for they may give up and move on to another site. If you have a lot of free content, though, throttling can be useful for keeping your hosting budget within a certain amount.

Web Hosting and Databases

Most web hosting packages include one or more databases. What can you use them for? How will they help your website? Read on for the answers to these questions. A database stores data, but more importantly, allows that data can easily be accessed. Data can be product information, customer names and addresses, sales records, or even the information that appears on web pages. Using a database to retrieve that information can allow you to better serve your visitors and provide them with a more interactive experience.

The most common use of databases in an Internet environment is to serve information dynamically as it is requested. In a large eCommerce site, for example, the actual product information is maintained in a database so that updating the site is a simple matter of changing the data. Without this system, website managers would have to create static pages for each product. When dealing with hundreds or thousands of products, this task would be almost impossible to manage in an efficient manner.

Dynamic pages use a template for the static content of the site such as headers, menus and footers. The contents of the database are inserted into the template by the server software before the page is sent to be viewed in a browser. Any content from the database can be placed anywhere on a dynamic page. This allows you to set up visually appealing pages which include text and pictures and also add shopping suggestions like: ‘Customers who bought this also bought…’

Databases can also be used for storing and accessing customer records. This allows you to tailor your pages according to your customer’s previous purchases. Each page could have a personalized greeting (Welcome back Peter) and when they make another purchase all their personal data including address and credit card number could be pulled from the database so they don’t have to fill in the same form again.

Another use of a database is mailinglists. Many websites send out information to their visitors to remind them about the site and encourage them to visit again. Email addresses can be stored in a database for the purpose of sending out announcements and newsletters. Also the newsletters can be archived in a database so that visitors can browse or search through previous mailings.

Each database can be divided into tables which are a complete set of data, so one database could be used for most of your website information by setting up a number of tables.The number of databases that your site needs depends on how many applications you are going to run.

It’s one thing to have a database, it’s another to access that data. There are several ways to retrieve information from a database so that it can be usefully applied to your website. One of the most popular combinations is PHP along with MySQL. PHP can be used to create dynamic web pages that pull data from a MySQL database. The programming language is quite straightforward and can be used to set up complex interactive forms. Other database applications include MySQL with ASP, MSSQL with ASP, and PostgreSQL with PHP.