- How to Quickly Setup Your Own Web Server
- Why should I use an external server for my web server instead of a computer in my house?
- Running Windows Server at home
- How to Create Your Own Server at Home for Web Hosting
- Choose Your Hardware
- Choose Your Operating System: Linux or Windows?
- Is Your Connection Suited for Hosting?
- Set up and Configure Your Server
- Set up Your Domain Name and Check It Works
- Know How to Create Your Own Server at Home for Web Hosting the Right Way
How to Quickly Setup Your Own Web Server
Use code KB4KDO0L9 to receive a 10% recurring discount on any server.
Ever wanted to setup your own web server to host a website or share files with family? Creating a web server is really easy to do and we’ll show you everything you need to get started.
In this tutorial, we’ll install all of the components required for setting up of a web server on a ServerMania server. This will setup all of the basic components of a web server. If you will be hosting many sites, or want more robust site management, you should install a control panel like cPanel instead.
Why should I use an external server for my web server instead of a computer in my house?
There are many reasons why you should use a ServerMania Hybrid or Dedicated Server to set up your web server instead of setting up a web server at home
- Cost: While it may sound cheaper to use that computer lying around doing nothing when creating your web server, when you factor in the cost of powering an old computer 24 hours a day, it can get very expensive. A 250W desktop computer running 24 hours per day at 12 cents per KW/h is a whopping $262.00 per year! Not to mention the costs of internet, hardware replacement, etc. It is much cheaper to rent a ServerMania server each month in the long run.
- Reliability: Consumer grade internet and computer hardware are not designed for the stresses of 24×7 usage and connections from around the globe. ServerMania on the other hand, uses enterprise grade hardware and connections to ensure everyone can connect to your server at lightning fast speeds.
- Support: One of the major drawbacks of hosting your own website is that you are responsible for any support issues. With ServerMania, you get 24×7 support included with every server so you know we’re always here if you need help.
Running Windows Server at home
Senior Writer, Computerworld |
Ask most anyone who runs Windows at home what edition of the operating system he or she is using, and odds are you’ll hear a fairly predictable roster of responses: Windows XP Home, XP Professional, Vista’s various incarnations, maybe even Windows 2000 Workstation.
But what about a server edition of Windows? Who needs a server-level operating system at home, and why?
A server in a home network isn’t as exotic as it sounds. In fact, you probably have at least one Windows machine in your home network right now that’s acting as a server in some capacity. Most of the functions performed by such a machine should be pretty familiar: sharing a printer or a network connection, sharing files and folders, or providing space for backup operations. What makes regular desktop Windows limited as far as such things go is a set of artificial constraints imposed by Microsoft about how much functionality they can offer. These constraints, arbitrary as they may be, don’t always prevent you from getting things done in a home environment — but they’re worth enumerating in detail and understanding.
Windows Server: Fewer limits, but more money
One of the most commonly cited reasons for using Server at home is its support for more than 10 simultaneous NetBIOS connections. NetBIOS connections are used to create file and printer shares in Windows, and desktop versions of Windows — XP Home and Pro, and Windows 2000 Workstation — have specific limits about how many inbound NetBIOS connections can be established. A Windows XP Professional machine can host up to 10 inbound connections, as does Windows 2000 Workstation; Windows XP Home can host only five.
Note that these connections are enumerated on a per-computer basis: If you have one computer connecting to another computer that has a file share and a shared printer, the file share and the shared printer are all counted as one connection. (On a personal note, I did in fact run a Web server out of my house via a dial-up link — almost a decade ago — using Windows NT as the server. It was never more than an experimental thing, though, and as soon as I could buy my own Web site hosting with a decent amount of disk space, I did.)
If you habitually have more than 10 computers in the same household (LAN party, anyone?), then one instance of Server may be useful. The vast majority of the time, you can get away with an XP Pro/Vista setup — especially since there’s a quirk to the way NetBIOS connections are established.
After a certain amount of idle time (about 10 minutes), a NetBIOS connection is automatically dropped. This way, in theory, more than 10 clients could connect in round-robin fashion; it’s just when you have 10 or more clients connecting continuously that it becomes a problem. A similar restriction exists for inbound TCP connections in desktop editions of Windows, but unless you have ambitions to run an Internet server out of your house, this is generally even less of an issue.
Yet another reason why someone might run some variety of Windows Server in lieu of XP (or even Vista) is support for server-level applications. Some programs simply don’t run on anything other than some variety of Windows Server. That said, many of those programs can be found in equivalent editions for desktop machines. Microsoft, for instance, has started offering functionally similar editions of certain server applications that can be run on desktop editions of Windows.
For those who can’t run the full version of SQL Server, there’s the SQL Server Express Edition; its biggest limitation is that it can’t deal with any single database bigger than 1GB. Another server-level app from Microsoft that will run on desktop editions of Windows, but with connection constraints, is Internet Information Server.
A third major reason for adding some kind of server in a home environment is to bridge the gaps between multiple platforms. One of our editors has an Intel-powered Mac, a MacBook and an assortment of Windows machines. In my own home, I’ve had all of the above at one time or another plus various kinds of Linux boxes. If you set up one server to support file- and printer-sharing to all of those machines at once, that’s generally far easier than trying to get each of them to talk to the other. Of course, this implies that the server platform you’re using can do that in the first place but, mercifully, most of them can do this — and in that respect, Windows Server is only one of several possible choices that also include a Linux box or a device dedicated to sharing files across a network.
Linux: Another way to serve
One common alternative that’s been posited to Windows Server in a home environment is Linux — specifically, a user-friendly variety of Linux that’s been written to coexist with Windows systems. Linux has come a long way from being a no-GUI, hackers-only system, thanks to the various development communities that have sprung up around it and created highly personable (and personalizable) versions of the operating system. Many of them can be installed on a given PC with relatively little hassle, and made to serve as a file or printer sharing system.
Ubuntu and Red Hat’s Fedora distribution are among the easier ones to set up and administer for these kinds of tasks, and they cost nothing (apart from the user’s investment of time and effort) to download and install. Finally, there are none of the arbitrary connectivity limits that Windows imposes.
Right now, the single biggest issue with Linux as a print server is actually not usability, although the degree of user-friendliness does vary depending on the distribution you’re using. Instead, it’s hardware compatibility, for printers in particular. One of the natural advantages Windows (any variety of Windows, not just the server variety) has in this area is that most any printer made, past or present, has some kind of Windows driver.
Many printers use proprietary communications protocols and don’t have manufacturer-written Linux drivers available for them, so if you’re considering using Linux for printer-sharing, make sure it either supports a standard printer protocol (PCL 5/6, or PostScript) or has a community- or manufacturer-supported driver of some kind.
File and folder sharing from Linux to Windows has also been made a lot easier over time. Before, it used to involve a good deal of command-line hackery, but this is thankfully not as much the case. The one possible catch is if you have any Vista machines in your network. Some Linux distributions use default Windows file-sharing settings that don’t take into account the way credentials are passed to and from Vista boxes. Fortunately, this is not too hard to get around, and may already be fixed by default, depending on what distribution you use.
Windows Home Server: Best of both worlds?
As it happens, Microsoft is on the verge of rolling out a server product specifically for the home market — Windows Home Server. Five years ago, Windows Home Server probably wouldn’t have been as interesting to consumers. For one, there weren’t as many PCs per household, so offering a product with these functions wouldn’t have been as appealing. Today, it’s not uncommon for everyone in the family to have at least one PC, sometimes two.
To that end, Microsoft decided to respond by working with hardware vendors to create a version of Windows Server that will come bundled with a stand-alone, appliance-like device. It’s obviously not intended to be a replacement for Windows Server in all environments; its features are aimed mainly at home users. But they’re likely to be incredibly handy to that audience.
Aside from file and printer sharing, Home Server also includes things like network-wide backup and recovery, PC health monitoring (e.g., antivirus) and remote connectivity to both the server itself and to your desktops. The real beauty of the system is that it’s sold as an appliance, much like your typical firewall/router product. The idea is that you’ll just be able to uncrate it, plug it into the wall and the home network, and then run the client software on each PC to get each machine set up for backups. The client software works only on XP or Vista as of now.
WHS itself is also touted as being highly self-managing, so you don’t need to learn how to administer yet another computer — and a server at that — to get it to work.
Those with IT-savvy might wonder how the guts of Windows Home Server shape up against Windows Server in general. As it turns out, Home Server’s essentially a variant of Windows Small Business Server 2003, but with a different shell that makes it a lot easier to accomplish the tasks it’s built to do. However, it’s also closed — you’re not allowed to install arbitrary software on it, since it’s being sold and marketed as an appliance product.
That might be frustrating to admins who are used to being able to do as they please, but WHS isn’t really intended to eclipse existing editions of Windows Server anyway. And Microsoft has a sort of plug-in architecture that makes it possible to extend Home Server’s functionality without needing to hack it.
The single biggest strike against running Windows Home Server is likely to be the cost. Since it’s meant to be sold with a hardware device, essentially a low-end PC, the cost may be as high as $500. The cost hasn’t been set yet and will probably be established first by the hardware OEMs. But as one means of comparison, Windows Small Business Server 2003 — which includes full implementations of SQL Server and Exchange Server right in the box — is typically around $599.
What makes Home Server the more appetizing of the two choices is not price alone, but the feature mix, which is geared more to home users than other versions of Windows Server would be, unless you have a family of SQL or Exchange developers.
Most of what you probably need a server for in a home network setting can probably be handled with existing products. Desktop versions of Windows may be crippled by how many connections they’re permitted to handle at once, but in a home environment, you will likely never approach those limits. If you do need to get around those limits, it is possible to use Linux to do so, provided you don’t run into any hardware-support issues. Even for those who want or need it, Windows Home Server isn’t quite baked yet. It’s scheduled to be released along with its corresponding hardware in the second half of this year. Still, it promises to solve a lot of problems all at once, for those who need it and are inclined to drop the cash.
Serdar Yegulalp writes about Windows and related technologies for a number of publications, including his own Windows Insight blog.
Serdar Yegulalp is a senior writer at InfoWorld, focused on machine learning, containerization, devops, the Python ecosystem, and periodic reviews.
How to Create Your Own Server at Home for Web Hosting
So you want to a set up your website, but you don’t want to pay for web hosting.
If you’ve got a good enough internet connection and the hardware to spare, why not do it yourself with your own home server?
Not only can it save you money on hosting costs, but it can also give you far more choice to decide on the software your server can run.
Let’s run through how to create your own server at home for web hosting.
Choose Your Hardware
If you’re planning on hosting a website, the first stage of knowing how to build a website server is choosing hardware capable of hosting it.
Consider your potential usage requirements first. How many users do you expect to serve? Will you need a lot of storage space or processing power?
The good news is that if your budget is limited (or non-existent), you don’t necessarily have to purchase any additional equipment. An old PC may adequately run the software you need for your web server.
Beware, however, the power requirements that an older PC might need, especially if you’re planning on running your server for 24 hours a day.
Choose Your Operating System: Linux or Windows?
With hardware in place, your next choice when deciding how to build a server for your website is choosing your operating system. You have two realistic choices to choose from – Microsoft Windows or Linux.
It’s estimated that nearly 70% of servers on the web currently run Linux. The reasons why can vary, but cost considerations and the ease in which these servers can be customized play a big part.
If you’d rather run a Windows web server, you’ll need to pay for a Windows license. Linux, by comparison, is free and open source and can be far more customizable than a typical Windows server installation would be.
Linux servers are also a more secure option, with far fewer malware opportunities for hackers to exploit.
That doesn’t mean they’re invincible, however. Much will depend on keeping your software up-to-date, and your server properly configured, regardless of which operating system you choose to use.
Is Your Connection Suited for Hosting?
DIY web hosting requires an internet connection that’s suitable for web traffic. Your download and upload speeds are important here – residential internet connections may offer a high download speed, but a low upload speed.
How fast you can ‘upload’ your website data to each user who visits your site will depend on this speed. The number of users who can access your site at the same time will have to share this connection, too.
Test your internet connection using speed testing tools like this one to determine your current speeds. You should also confirm with your ISP whether you have any data limits on your connection.
If your ISP caps your data usage or throttles it back if the usage is too much, you may need to look at changing your provider.
Set up and Configure Your Server
With your hardware, connection and operating system ready, you’ll need to set up the software you need to host your site.
This will depend on the operating system you’ve chosen for your server. Windows Server installations can install IIS, the web server add on. This Microsoft support documentation for IIS gives you step-by-step instructions on what to do.
If you decided to go for Linux, Apache, Lighttpd or NGINX are three options for you to install. Apache is the most well known, and you can find out how to install it here. You can also install Apache on a typical Windows installation, too.
You may need to open up ports on your home router and firewall to allow your web traffic to pass back and forth from your web server. Ports 80 and 443 are the most essential for web traffic, so be sure these aren’t blocked.
If you need help in opening up ports on your router, this guide should help you get started.
Once the server is set up and configured for web traffic, check it works by visiting your server on a web browser. Most servers will come with a test page that will display once it’s loaded. You can replace this with your website files afterward.
You’ll need to get to grips with the best tools to configure and maintain your web server. Here are some suggested tools for system administrators that you should look to make use of.
Set up Your Domain Name and Check It Works
Once your server is configured for access from users on the internet, your final step is setting up a domain name to allow your users to find you.
Before you do, users will only be able to visit your site by typing in your web servers external IP address. Rather than a series of numbers, you’ll want an easy-to-remember address for your users to type in.
You’ll need to purchase a domain name from a domain registrar, but you can register for a free subdomain from a service like No-IP if you’d prefer.
With a domain (or subdomain) available to you, you’ll then need to set up the relevant DNS entries for your domain to point to your servers IP address. Your registrar will have their own instructions on how to do this.
After a few hours to allow the changes to take effect, your server should be ready.
Know How to Create Your Own Server at Home for Web Hosting the Right Way
Knowing how to create your own server at home for web hosting means you’re ready to take control.
It can be a cost-effective way to host your site, with the added bonus that your data remains in your hands, not in the hands of an off-site hosting provider. You don’t have to worry about the type of website you host on your server, either.
Want to run a basic HTML page or a complex CMS like WordPress? You’ll be able to run either – as long as you configure your server correctly.
If you’re DIY hosting your website, use our web monitoring tool to keep an eye on your website uptime, day or night. Register today for a free account to get started!