Tag Archives: web server

How to Build a Computer Network

If you own or manage two or more computers you need to connect your computers in a wired network to share Internet Connection and other services.
Here is a complete How To Build a Network.

Whether you are doing it at home or at your workplace, creating a computer network is not very difficult if you are a handy person and you have basic knowledge of computer networks. We will cover here most of the concepts you need to make your own LAN.
Computer Network
The series of articles will show you how to create a physical network and how to configure it to provide various services to your network users. We will focus on TCP/IP networks as this is the most common networking protocol.

Why Do You Need a Network?

You need a network if you need to share services for two or more computers.
Services that can be shared include: File sharing, sharing a network printer, Internet sharing, email services, Intranet, media broadcasting, etc…
In a home network, it is very common to share a printer and the Internet Connection.
In Business environment, the network becomes more complex and many more services will be needed to accommodate the use of many computers in a single network. Such services are DHCP – for automatic IP configuration, DNS – for name to IP resolution, corporate email, Proxy Server – for increased security on Internet, Intranet server – this is a private web server, VOIP phone system, etc…

What are the Limitations of My Network

You Ethernet cables are limited to 100m between any two active devices. If you need more than 100m between any two active devices such as computer and switch or computer to computer, you need to add a repeater or a hub, a switch will work as well, at each additional 100 meters, (or 333 ft.).
Depending on your materials and equipment, your network can run at 10Mb/s, 100Mb/s or 1Gigabit/s.
The most usual is to use Cat 5 or Cat 5e cables and connectors. A Cat 5 network can provide a speed up to 1000Mb/s.
If you need to connect at longer distances the more suitable solution are
Coaxial cable – up to 500M, speed 10Mb. You need special repeaters or hubs or special network cards.
The fiber optic – 10Km or more, speed up to 100Gb, depending on the equipment. It is the most expensive solution; the price though can be affordable for slower connections. For slower connections, most of the cost will consist on running the cable between the two points.
DSL is the cheap way to connect two remote offices if you have an available copper pair between the two offices.

What Do I Need to Make My own Network?

To make your own Ethernet Network you need the following equipment:
UTP/STP networking cable, RJ-45 connectors, Crimping tool, Punch down tool, Keystone Jacks, Wire stripper / Knife, Network Tester, Patch Panel, Network Switching device. The list includes also a stud finder, drywall saw, measuring tape, mounting plate, fish tape, ladder, and the usual tools such as screwdriver, drilling machine, hammer, etc…
Ample descriptions on the tools and materials are provided by following the links.

Computer Network Planning

The typical Ethernet Network has a star topology. That means that you have a central device, (network switch), that connects all of your network participants. This is important for your planning since you will have to run all of your cables to a central point. Make your measurements and place your central point in such manner that all of your cables are 100m or less. This includes the patch-cord as well.
If you have computers farther than 100m you will need to install a repeater. Alternatively you can use other types of connection, (coax, fiber optic, etc…), see the limitation paragraph.
When you run a cable consider the maximum amount of devices that can be stuffed into that office. It is a lot cheaper to run an extra cable or two per each office location than to run a single cable after the initial installation.
Install the keystones as close as possible to the actual location of the computer. Plan this thoroughly and pick the best location so that the patch-cord is out of the way.
Buy extra cable and extra connectors.
Use common paths for your cables whenever possible. If you run ten cables at once saves a lot of work and time.
Plan your cable route. Use ceiling whenever possible, it is the easiest path. Avoid running the cables near big electromagnetic sources.

Buying Computer Network Tools and Supplies

Do not buy cheap tools and materials. If you do, you will be penalized in different ways:
At the installation time you will get all sorts of problems trying to connect poor materials, cheap cable will be damaged more easily when manipulated, connectors will break easier.
In time the quality of the network will decrease if poor supplies and tools are used.
Overall experience and quality will be very poor if you get too cheap. If buying expensive tools is not justified, (a one time job), try to borrow good tools and don’t buy cheap ones.
Follow the links to learn what to look for when you are buying specific materials.
Now that you planned and bought all the Networking tools and supplies you can proceed to the Running the Cables for a Computer Network.

Internet Business – How to choose your First Web Hosting Company

The Internet Business is a business model that can be started with a minimum of investment. Your work, talent and favourable circumstances can be enough to help you start an Internet business.

If you already have an idea and you planned everything about your product and site’s content you need to start your business. At first you need to minimize the costs and investments in order to diminish risks. If the business will not take off as expected the loss will be minimal and you can try another idea. Read this article about successful business ideas.

The minimum for an Internet business is a domain name, (this is not 100% required but strongly recommended) and a Web Server. A web server can be your own equipment or hosted server. Hosting companies will sell various types of hosting services ranging from a dedicated server with one or more dedicated IP addresses to shared hardware.

A good web hosting package will contain support for application development platforms such as PHP, ASP, ColdFusion, etc… access to a database server and a Control Panel that offers to customers an easy way to manage their website.

As a starter the minimal package will be perfect for you, you can always switch to a dedicated server if shared services can’t accommodate your growing traffic.
Affiliate Disclosure


When you choose your first web hosting look these features even if you don’t think you are going to need them; as your business grows you will certainly need it.

  • Disk space – this should not be a problem, as most of the companies will give you plenty of space or even unlimited space.
  • Technical support – you need good technical support that you can rely on if something happens. 24/7 support is desired so you don’t have to wait the next day to fix your website.
  • Email support, auto-responders, mail forwarding will be great marketing tools.
  • FTP is a definite requirement, SSH connection could be needed, Control Panel is an excellent tool for administration you should choose a package that provides it.
  • Multiple domains and sub-domains will help you pay for a minimal single package while testing various domain names.
  • Up-time is a measure of reliability of a web site. 99.5% or more is a good up-time.
  • Web-site speed – can be determined by a series of factors of which the important ones when picking your hosting company are: the Internet Connection Speed of your host, the number of customers that share a server, the resources taken by the other customers that share the server with your web-site, the capability to partition hardware so that CPU and IO are equally shared between customers, (some companies use a CPU throttling mechanism).
  • Support to database, PHP, ASP or ColdFusion and Perl.
  • Price is very important, at least at this stage, but don’t go for the cheapes just because of the price. All the previous aspects are more important.
  • Try to go local, the language barrier, the time-zone sometimes make a difference. Also it will be faster for your clients to access a local provider than a server located on another continent.

It is important that you focus more on the content of the website and running the business and not on developing the website and learning PHP or ASP. That’s why you have to look for a Control Panel that contains the ability to install a CMS, (Content Management System), such as Drupal or Joomla or even WordPress.

Following is a list with some of the most popular Web Hosting providers:

HOSTMONSTER – The best Web Hosting
Host Gator
Blue Host – Best Web Hosting Plan! 300 GB Space, 3,000 GB Bandwidth – only $6.95/mo!
Go Daddy – $1.99 Web Hosting
Host your Web site with FatCow!
InMotion Affordable Hosting – More Info
Intuit Build and host your website for only $4.99 per month. Start your FREE 30 Day Trial Now
IX Webhosting Top Ranked MS SQL, MySQL, PostGreSQL WebHosting – Linux/Windows
Just Host hosting for $4.95/mo, Unlimited disk space and bandwidth plus FREE domain
Save 20% on Web.com web creation/web hosting products using code TWC287
Business VPS – Virtual Server Hosting from Myhosting.com
iPower Dedicated Servers
1&1 Internet Ltd – UK
iPage – $83 Plan for only $3.50 a month – Click Here for More Details!
Get everything you need for a great web site with Yahoo! Web Hosting – 25% off
Aplus.Net – Special offer: Business hosting from $4.98!
Lunarpages.com – Get a website from $4.95/month + Unlimited Emails, Storage & $700 Free Bonus Software – Limited Time Offer!

Affiliate Disclosure

Browser Auto-config and Wpad deployment

Using a Proxy Server in your Company’s Network is one of the best decisions you have made.
But this decision can bring you some administration overhead if you don’t have an automatic way to provision the browser settings.
Fortunately, for Microsoft Operating Systems there is a way to accomplish this.
The procedure involves a configuration file that tells browsers how to connect to Internet.
This file is published via the existing Infrastructure using DNS, DHCP and a WEB Server.

Create the configuration file

Create the wpad.dat file inserting the following text:
function FindProxyForURL(url, host) {
return "PROXY 192.168.100.10:3128; DIRECT";
}

IIS

Create a new website and link it to a folder of your choice, (for instance c:\wpad). Place the wpad.dat file inside the folder.
Create a mime type for the .dat  file type with the mime type  “application/x-ns-proxy-autoconfig”.
Restart IIS. If you already have an IIS just place the file in the root directory.

Apache:

Create the wpad.dat file on the www directory depending on your distribution (on a Debian is /var/www/).
For instance:
#nano /var/www/wpad.dat
would open the nano editor. If nano is not install use vi or mcedit or any other text editor.
Edit httpd.conf:
#nano /etc/apache/httpd.conf
and insert the following line:  
AddType application/x-ns-proxy-autoconfig .dat

Make sure apache daemon is starting at boot time, (update-rc.d  apache2 defaults)
Restart apache #/etc/init.d/apache2 restart.

DHCP – Configuration for Proxy Auto discovery

(on a Microsoft DHCP server)

  1. Click Start, point to All Programs, point to Administrative Tools, and then click DHCP.
  2. In the console tree, right-click the applicable DHCP server, click Set Predefined Options, and then click Add.
  3. In Name, type WPAD.
  4. In Code, type 252.
  5. In Data type, select String, and then click OK.
  6. In String, type http://internalserver/wpad.dat where:
    • internalserver is the domain name of the Server that hosts the wpad.dat file. (Alternatively you can use fully qualified domain name, (eg. http://internalserver.domain.local:3129/wpad.dat)
    • Port is the port number on which automatic discovery information is published. You can specify any port number. I put 3129.
  7. Right-click Server options, and then click Configure options.
  8. Confirm that Option 252 is selected.

If you configure this on a Unix DHCP server you might need to add an extra blank character at the end of the DNS Configuration
Create an alias (CNAME) with the name wpad pointing at the webserver that hosts your wpad.dat file. For instance the alias is wpad and the fully qualified domain name is internalserver.domain.local

Troubleshooting

WPAD alias DNS entry not responding
After creating your alias when you ping wpad you get host not found this could be related to a security improvement on Microsoft’s DNS servers.
To fix this you need to edit the following registry value: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters\GlobalQueryBlockList
Edit this on all of your Microsoft DNS servers and remove wpad from the list of values. See the image below:

Registry Fix for Implementation of WPAD

Note that this configuration requires you or your user to configure your browser to “Automatically Detect Settings”.
For Internet Explorer this can be automatically configured for all the users in an Active Directory domain via a Group Policy.
The same policy will be used by Google Chrome, which uses the Windows Internet Connection configuration.
Other browsers such as Opera, and Mozilla will have to be manually configured. Alternatively, for an automatic configuration they can be tweaked via registry hacks or configured via third party software.
The disadvantage with manual configuration is of course the cost of deployment and the fact that this can be changed by the user. If you want to enforce the use of the proxy you have to restrict the gateway access and allow only the proxy machine to access it. Another way would be to configure your proxy to be your router and set up a transparent proxy.