Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
148 views

Set Up Your Very Own Web Server

The document provides step-by-step instructions for setting up a home web server. It begins by recommending acquiring a dedicated PC and downloading a Linux operating system like Ubuntu. It then outlines 12 steps for installing the OS, configuring remote access via VNC, installing FTP and an HTTP server, obtaining a domain name, and testing the new home web server. The instructions are accompanied by images to aid in the setup process.

Uploaded by

usamakhan205
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views

Set Up Your Very Own Web Server

The document provides step-by-step instructions for setting up a home web server. It begins by recommending acquiring a dedicated PC and downloading a Linux operating system like Ubuntu. It then outlines 12 steps for installing the OS, configuring remote access via VNC, installing FTP and an HTTP server, obtaining a domain name, and testing the new home web server. The instructions are accompanied by images to aid in the setup process.

Uploaded by

usamakhan205
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Set up your very own Web server!


by CalcProgrammer1 on July 26, 2008

Table of Contents

Set up your very own Web server! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Set up your very own Web server! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Acquire a dedicated PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Get the OS! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Install the OS! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4: Setup VNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 5: Install FTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 6: Configure FTP Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Step 7: Configure and Activate FTP Server! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 8: Install HTTP support, sit back and relax! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 9: Install a video game server (Optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 10: Forward the Ports! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Step 11: Get a free domain! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Step 12: Test it out! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Author:CalcProgrammer1
I'm attending Missouri University of Science and Technology for Computer Engineering. I like working with electronics, and I'll post instructions on projects. I
also like the Nintendo Wii and the Xbox 360, but not the stupid PS3.

Intro: Set up your very own Web server!


Ever wanted to have a place where you could keep your files and access them anywhere you get an Internet connection? Say you wanted to have your music library
available in case you wanted to give a song to one of your friends, or maybe you wanted to let your relatives download your entire library of vacation photos, or maybe
you need a place to host programs you write or maps you make. How about a Web page? Ever wanted to have your own Web page? All of these can be accomplished
with a home Web server...and more!

It's actually really simple to set up a Web server at home. I'm going to use this while I'm away at college to host game servers, have an offsite file backup, and share files
with friends. Since the PC hosting the server will be at my house and I will be in my dorm room, obviously I can't just walk over and start changing system settings, so
we'll need some kind of remote access.

Also, obviously, you'll need a dedicated PC, one you can leave running and leave connected at all times. What good is a server that goes down all the time? This PC
doesn't have to be great, but remember, the more you run on it, the faster the PC needs to be to not lag (duh).

Image Notes
1. EXCELLENT server! Prime location is away from bedrooms, so 24/7 operation won't disturb sleeping people. The only problem will be when we put that wall in,
which the cords are running through...
2. Wall goes here, but hopefully not for a while, because cords go through here too.
3. broken pc speakers :(

Step 1: Acquire a dedicated PC


This step may be easy for some and hard for others. I already had a PC that I wasn't really using (it originally was my parents old PC, but then it died and I rebuilt it with
cheap parts, but since I already had a PC I didn't really use it much).

System specs:

AMD Sempron 64 2600+ (overclocked to 1.85 GHz)


1.5GB DDR RAM
nVidia GeForce4 MX420 64MB (GPU really not important, servers don't need good video cards, even integrated is plenty)
60GB hard drive (IDE) (not that good for a server, but good enough, I didn't want to spend any money on this)
DVD and CD drive (you'll need at least a CD drive to install the OS, other than that, not necessary)
3 Ethernet cards (you'll need at least 1)

This system performs very well as a server, so anything over this would perform even better. This PC cost about $100 to rebuild (already had RAM, case, optical drives,
and hard drive though) and that was late 2007 that I rebuilt it.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Image Notes
1. NOT good server!

Image Notes
1. OLD! Not a good server, because it can't run Ubuntu at all (Pentium 133).
2. I still use this, failing hard drive, NOT good server.
3. My better desktop, would make a decent server, but decided to use my other
desktop instead.
4. Believe it or not, CAN host FTP...not very well, but still, it can!
5. Brand new gaming laptop is not a good choice for server!

Image Notes
1. EXCELLENT server! Prime location is away from bedrooms, so 24/7 operation
won't disturb sleeping people. The only problem will be when we put that wall in,
which the cords are running through...
2. Wall goes here, but hopefully not for a while, because cords go through here
too.
3. broken pc speakers :(

Step 2: Get the OS!


For my server, I'm using Ubuntu Linux 8.04. Linux is a great server OS and is one of the major OS'es behind professional Web servers (like Google, if I remember right,
Google uses Linux servers). However, Linux can be confusing for new users, so I'm going to use the desktop version instead of the server version. The desktop version
has a graphical user interface (GUI) so you won't have to configure your server using all terminal commands. Just because it isn't the "server edition" doesn't mean it
can't run a great server, though!

If you have a 64 bit PC, you'll want the 64 bit version of Linux. These are 64 bit chipsets:
-AMD Athlon64
-AMD Athlon64 X2
-AMD Turion64
-AMD Turion64 X2
-AMD Sempron64 (not officially marked Sempron64, but will have the AMD 64 logo on the packaging)

-Intel Core 2
-Intel Core 2 Duo
-Intel Core 2 Quad

If you have a 32 bit PC, you can't use the 64 bit edition, so get the 32 bit (x86) version. These are common 32 bit CPU's:
-AMD Athlon
http://www.instructables.com/id/Set-up-your-very-own-Web-server/
-AMD AthlonXP
-AMD Sempron
-AMD Duron
-Intel Pentium 1/2/3/4/M/D
-Intel Celeron (some new ones may be 64 bit compatible though)

Download Ubuntu at www.ubuntu.com


I recommend using BitTorrent to download.

After you get the ISO image of whatever version you're going to use, burn the .iso file to a blank CD using your CD burning program of choice.

Image Notes Image Notes


1. Ubuntu 8.04 64 Bit Edition cover art. 1. The alternate method. They're not pretty, but they work just as well.
2. 8.04 32 bit edition cover art
3. Kubuntu, it's Ubuntu with KDE instead of GNOME, but I prefer GNOME, so I'll
stick with Ubuntu.

Step 3: Install the OS!


Put the CD in your PC and turn it on. With any luck, it will come up to the Ubuntu CD screen. Pick your language and then select the first option on the menu (not Install, I
think it's Test or LiveCD or something like that). It will proceed to load and you'll soon see Ubuntu's Desktop.

Now, if you want to dual boot (have both Windows and Linux on the same PC), go to System->Administration->Partition Editor. You can use this to resize your Windows
(FAT32 or NTFS) partition and leave some empty space to install Linux on. After resizing and applying, or if you're just going to install Linux on its own, double click the
"Install" icon on your Desktop. Follow through the guided setup, selecting "Use largest continuous free space" as the location to install to.

After it's done installing, reboot your PC. You should get GRUB (the bootloader, a black screen with a menu listing all the installed operating systems on your PC). Pick
Ubuntu from the list and hit Enter.

After it boots up, login using the name and password you entered during the install process. You should now see the Ubuntu Desktop. Now you're ready to serve!

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 4: Setup VNC
Well, now that you have your operating system installed, you'll want to enable some sort of remote access. With remote access, you'll be able to connect to your server
using another PC and see the server's screen. You'll also be able to use the mouse and keyboard on the remote PC to control the server's own mouse and keyboard,
meaning you can use the server from anywhere on the Internet.

To set up remote desktop access, go to System->Preferences->Remote Desktop. Check these:

"Allow other users to view your desktop"


"Allow other users to control your desktop"
"Require the user to enter this password:"

Then type a password in the Password field. There's a character limit on it, so your password must be fairly short. This password will need to be entered on the remote
PC before you will see the server's Desktop.

Step 5: Install FTP


Now you can access your PC from another PC, but I'll get to how to use this feature later. First, let's finish the basic setup of our server.

FTP (File Transfer Protocol) is a system used to upload and download files to and from a server. Basically, it's like having a folder on the Internet, you can have multiple
folders that you copy files to. You can even use Windows Explorer to access your online folder and drag your files to it to upload them. Then you can give your friends an
account and they can upload and download too, eliminating the need to cram files into emails.

For this, I'm going to use Pro FTP Daemon (proftpd), a Linux program that runs a FTP server on your computer. I'm also going to use gproftpd, a graphical frontend (GUI)
that allows you to set up proftpd without having to edit text files or use terminal codes. I know this may sound confusing, but in reality it is very easy.

Start off by opening a terminal (Applications->Accessories->Terminal). There are other ways to install programs (if you absolutely can't stand terminal), but personally I
think it's faster just to use terminal if you know what you're looking for.

Once it's open, type:

sudo apt-get install proftpd

and hit ENTER. It will say "password:", enter your password (the one you setup during installation) and then press ENTER again. It won't put asterisks or dots as you type
your password, so don't worry if you don't see any indication that you've typed your password.

Then it will run through a bunch of stuff, possibly asking you to press Y or N (Yes or No) to the install, obviously press Y.

Then after it's done with that (will be back to the @ line), type:

sudo apt-get install gproftpd

and hit ENTER. It shouldn't ask you for your password this time since you've already entered it, but should it ask, just repeat the above.

Once that command is done, you're ready to configure.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 6: Configure FTP Users
Now for the fun part. Go to System -> Administration -> GPROFTPD and enter your password if it asks for it. You should be faced with the GPROFTPD window. Your
server probably won't be activated, nor will it be set up, so we must go through and configure it first.

First, go to the Users tab. This is where you'll create an account for yourself. It's fairly self-explanatory, but here's the information you need to fill in:

Username: just put in whatever you want your username to be on your server. You'll use this to login. It can't have capital letters or non-standard characters, just
lowercase letters and numbers.

Password: self explanatory, again, lowercase letters and numbers. Note that it won't mask your password, so if you're entering a private password, don't let your friends
see your screen!

Group: Not too sure about this, just enter a group name. I'd put "administrators" because you're an admin, then for friends put "users" (unless they're really special and
you want to classify them as administrators too :P ) Again, lowercase letters and numbers only.

Comment: Put who the account really is ("me" works for yourself, or put your friends' real names here). Again, lowercase letters and numbers only.

Shell: just leave it as it is, /dev/null. I don't know what it's for, but it works fine if you leave it at that.

Check both "Require password" and "Show user in statistics" (if you want a hidden user, uncheck "Show user in statistics")

Maximum logins: Set how many simultaneous connections the user is allowed to open. For you, I'd set it higher, for other people, set it lower. Chances are, you'll be the
one uploading most of the files, so that's why you get more connections.

Allow logins from: all, just leave it at that.

For the bottom part, put the user's home directory. For mine, I put /home/adam/ftp. Since I wanted to access my home directory from my account (/home/adam), I put
everyone else's account set to a subdirectory of my home (/home/adam/ftp). That way the FTP directory is within my user account's home, and my FTP account can
access the FTP home as well as my personal home directory. I recommend using /home// for YOUR home directory, with all permissions checked, and /home//ftp for your
friends (check permissions as you see fit). Permissions are self-explanatory, to allow a user to perform a certain action on a file or folder, check the box.

After you set up your user, click the "Add" button to add the user to the list. Repeat this step for as many users as you want.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 7: Configure and Activate FTP Server!
Now is the fun part. You actually get to put your FTP server out there on your network, and it will eventually be on the Internet.

Go back to the first tab, the "Servers" tab. It is pretty much set up already, but here are some options you may want to change.

The servers IP-address or hostname: I'd recommend leaving this at 0.0.0.0, that means it will automatically detect its location and configure itself accordingly

Alternative server identity: You can use this to give your server a name. It's optional, and if you want to give it a name, change the box to "On"

Configure NAT routing: Set this to your router's IP, but it doesn't seem necessary, it works without turning it on, so no big deal, just leave it off and only use it if you have
problems

The administrators email address: You are the administrator, put your e-mail here.

Use identity/reverse lookups: No clue what these do, but Off/Off works fine

Time standard: Keep it at Local, chances are the people using your FTP know what time zone you live in.

Port: Leave this at 21, that's the standard FTP port. Should you desire to change it, and know what you're doing, go ahead, but if you don't know what this is, leave it at
21.

Passive port range: I don't know, leave at default and you should be fine

Maximum Connections: This is how many total (from all users) connections your server will allow. Default is fine here.

Maximum login tries: I guess this is for bad password tries. I prefer to set this higher, because I know people can mess up their password. Just because you mess up
your password doesn't mean you're a hacker, so I allow 40 tries on my server.

Upload speed: Set this higher than the maximum network speed connected to the server, it will ensure that your server doesn't slow down unnecessarily. If you're using
both LAN and Internet to transfer, set this over 1000, because LAN can transfer much faster and LAN transfers will be slowed down for no reason. Internet will simply not
reach the maximum speed, but that's obvious.

Download speed: Same as above, I set it high (1000) to prevent slow LAN transfers.

Automatically remove aborted uploads: I turn this ON. That way, if someone cancels an upload, you won't get half a file on your server (half a file is pretty useless and it
wastes space).

OK! Now you've configured. Click "Apply" to apply the settings changes. Now for the big one, click the "Activate" button and your server's status will change to
"Activated". That means you're now ONLINE! (well, not really, your server is up but only on your LAN, more on this later).

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 8: Install HTTP support, sit back and relax!
Thought FTP was a bit hard (or at least long?), no need to fear. Setting up HTTP support is downright simple.

Type this in Terminal:

sudo apt-get install apache2

and hit Enter, typing your password if necessary, and hitting Y if necessary.

Now, sit back and relax, HTTP server is up and running!

(by the way, your web page's home directory is /var/www, you put your html files there)

Image Notes
1. Just that! That's all there is to it!
Image Notes
1. After installing and starting HTTP support with just one terminal command, sit
back and relax!

Step 9: Install a video game server (Optional)


I'm not going into a lot of detail on this one, as all games are different, and everyone plays different games. However, if you want to, you can use your new server to run a
video game server.

PROBLEM! Most video games are written for WINDOWS...but our server isn't running that :(

The answer? Wine. Wine is a program that lets you run Windows programs in Linux. 3d support isn't perfect, so the games themselves often have glitches or graphics
issues, but dedicated server programs for those games usually work flawlessly.

Again, use Terminal to install Wine with the easy command:

sudo apt-get install wine

By now you should know how to use this.

After Wine installs, you'll have a folder /home//.wine/drive_c/ (you have to click Show Hidden Files in the file browser to see .wine, because anything with a period in front
is considered hidden in Linux). This is the equivalent of your Windows C: drive. Any programs that you'd have in your C: drive go in this folder, as Wine sees this folder as
your virtual C: drive.
http://www.instructables.com/id/Set-up-your-very-own-Web-server/
In my case,

/home/adam/.wine/drive_c/gmodserver/orangebox/srcds.exe is the location of the program I need.

You can make a launcher on your Desktop to start your server (assuming Source Dedicated Server here).

Type - Application
Name - Garry's Mod Server
Command - wine C:/gmodserver/orangebox/srcds.exe -game garrysmod
Comment - Start a Garry's Mod Server

Now you should get a nice icon on your Desktop, you can use this to run your server. Have fun gaming :)

Image Notes
1. drive_c is like Wine's C: drive. Put all your programs in here! Image Notes
2. programs 1. OMG! Windows program in Linux! OMGHAX!
3. not programs 2. Desktop Shortcut...ermm...Desktop Launcher (Shortcuts are for Windows)
4. Vista needs one of these!
5. feet

Step 10: Forward the Ports!


What? Forward ports? What's that?

Port Forwarding is an option available in almost all home routers. Because your server PC is likely behind a router (your home network is a Local Area Network [LAN]
with a router connecting it to the Internet), your PC's IP address (the number that other PC's use to talk to the server PC) only works within your local network (all the
PC's connected to your router). In order for the outside world (Internet) to talk directly to your server, your router needs to let the two communicate. Normally, the outside
world (Internet) would talk to your router, and your router would relay that message to your PC. This works great for browsing, but not for serving.

To open this communication channel, we need to look at ports. Ports are "channels" that different programs use to talk on. Some common ports:

21 - FTP
80 - HTTP
5900 - VNC
29070 - Jedi Academy (used to host a JKA server)

There's tons more (like 65 thousand of them lol) but that's not the point. The point is, you need the port on your Internet IP address to be connected directly to the port on
your server's local IP address.

To do this, open your router's settings page (you'll need to know the admin username and password for it). The router's page is usually at http://192.168.1.1 , though
some can be at http://192.168.0.1 , http://192.168.2.1 , or other addresses. If you can't connect, consult your router's instruction manual or Google search it.

Once in, you need to find Port Forwarding. My Netgear has it right on the side column, not sure about other brands. From here you can go to work. You'll need to know
the local IP of the server PC (you can find this by right clicking on the networking icon at the top-right corner of the screen, the icon with two PC's, and selecting
Connection Information, it's the "IP Address" field).

Now, add the following setups:

(format: "name" - TCP/UDP - start port - end port - 192.168.x.x (replace with that of your server))
"VNC" - TCP - 5800 - 5900 - 192.168.x.x
"FTP" - TCP/UDP - 21 - 21 - 192.168.x.x
"HTTP" - TCP - 80 - 80 - 192.168.x.x
"Gmod" - TCP/UDP - 27015 - 27015 - 192.168.x.x (replace with the settings for your game obviously)

Once you apply this, you should really be ONLINE.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 11: Get a free domain!
Ok, so you have a server. Do you really think all your friends are going to be so eager to sign on to http://75.185.355.1337 (obviously not a real IP, but most of your
friends won't know that) to get the latest? NO! Remembering your long, boring, ever-changing IP is hard even for those who understand it. This is the Internet, yet you're
telling them something resembling a long phone number.

You need a domain! A domain name is a mask for your IP address. Just like any other site, Google's servers have an IP address. However, you don't know their IP
address, all you know is www.google.com. So, how come you can connect to them without knowing their IP? Because, the domain www.google.com links to Google's
server's IP address and sends requests to it.

The problem with domain names is that they cost money to register. However, if you're willing to sacrifice, you can get free domains at www.no-ip.com. The downside is
that your domain will be <yoursite>.servegame.com or something similar. They have a bunch of domains you can choose to be at (servegame, servehttp, serveftp just to
name a few) but you can't get your completely customized domain. (For example, I can get [and have already gotten] http://calc.servegame.com , but not
http://calcprogrammer1.com [which would cost money to register])

Other than the name thing, no-ip domains are great. Free ones only last 60 days, but when it's about to expire they send you an e-mail that you can extend your use of
the domain for free.

You'll need to know your Internet IP address, which can be found simply by googling "What is my IP" (you'll get a ton of sites that will tell you your IP). Use your Internet
IP in your no-ip setup.

Image Notes
1. Your INTERNET (not Local) IP address goes here
2. leave this
3. Your site name

Image Notes
1. Choose one of these, pick the one that best fits your server.
2. Don't bother with the Mail Options, you're just doing a hostname.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Step 12: Test it out!
Now comes the fun part. Everything should be set up and ready to go, all you have to do is test.

Start out by testing http, since that's the easiest. Simply open your browser and type "http://<your no-ip domain>.com" and hit Enter. With any luck, "It Works!" should
appear (the test message from apache2, you can change the file in /var/www after you know it does indeed work). If it doesn't, try "http://<your Internet IP> [no www. or
.com, just the IP number]". This SHOULD work, if it doesn't, your port forwarding isn't working. If neither of those work, as a last resort, try http://<your LOCAL IP> (again,
no www. or .com, just number). This SHOULD work, if THIS doesn't work, it means your server isn't working.

Then test FTP. Open up Windows Explorer and type "ftp://<your no-ip domain>.com". You should be prompted for username and password, type your FTP username
and password and you should see all your folders. Try uploading a file. It should work, if it doesn't accept the file, go play around with GPROFTPD's user page. Again, if it
doesn't work, try the above URL's except with ftp://

Next, test VNC. You'll need a VNC viewer. TightVNC and UltraVNC both are great VNC Viewers for Windows. For the VNC address, simply put your no-ip domain and
.com (for example, calc.servegame.com, no http://, no www., and no ftp://). You should be prompted for password. Put whatever password you entered for VNC. If all
goes well, you'll see your server's screen on your Windows PC's screen.

Last, test games. If you're hosting a game server, log on and see if you can join.

If all goes well, you now have a server! Now go learn how to make a web page, upload some files to share, and go play some games! Having your own server can be a
great help in college or anywhere else they limit Internet connections (namely P2P) because you can run P2P applications on your server at home and then download the
finished downloads via FTP or HTTP. Have fun!

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Related Instructables

Turn an old
Computer into a
Setting up an Give Your Cat Worldwide How to Start a
FTP server web server! by Twitter Powers microcontroller Home
using filezilla! z2daj by bpunkt link for under Website/Server MAYA Budget
by kbarn021 $20 by Dr_Acula by bdk184 Telepresence
Rover by bhylak

Comments
50 comments Add Comment view all 198 comments

CalcProgrammer1 says: Dec 2, 2010. 9:47 PM REPLY


This tutorial is over 2 years old, I wrote it in 2008 for Ubuntu 8.04 LTS which is now very outdated. The packages have changed and it looks like gadmin-
proftpd does not work the same way as it did in 8.04. Unfortunately I do not have time to create a new Instructable, also I switched my server to Windows XP
Pro because I needed to run some Windows stuff that Wine couldn't handle.

harias says: Nov 28, 2010. 2:45 PM REPLY


I got an error message when trying to activate:
-Fatal: TLSRSACertificateFile:'etc/garmin-proftpd/certs/cert.pem' does not exist online 57 of '/etc/proftpd/proftpd.conf'
I am using Ubuntu 10.10, nd I have the feeling this tutorial is for a lower version...

shaqadim says: Feb 19, 2010. 2:50 PM REPLY


mine keeps on coming up saying that my computer can only be reached on a local network but i have a ethernet cable connected y wont it connect to the
internet

pspuria says: Nov 13, 2010. 10:31 AM REPLY


you need to go into your router and configure port forwarding
web port is 80 and set the address as the webserver and you should be able to access it from the EXTERNAL ip address that your network sits behind

Knuxz says: Oct 17, 2010. 11:15 AM REPLY


You probably need to open the correct ports on your router so that when other computers are trying to remotely access it they can have a path to follow.

Computothought says: Nov 11, 2010. 12:06 PM REPLY


may also want to set up ddns.

Computothought says: Nov 11, 2010. 12:06 PM REPLY


Once you start using a web server, you will wonder why you never used one before. I run my private apache web server on an old an old pII. It is currently
running Ubuntu though I prefer debian when I am not running centos. I had it on I think ubuntu server 6.x and have done in-place upgrades as they came
along the way to 9.x. (i.e. no reformatting or disk wiping). This is an example of the actual web pages i run on it. http://www.instructables.com/id/Uses-for-
your-own-private-cloud/ I have since added doing home automation on it. Keep finding uses for that legacy computer. Microsoft Windows Supporters said I
should have thrown away a long time ago. It is not what you use, but how you use it.

Zoombus says: Jan 4, 2010. 6:47 PM REPLY


I have a problem. I forwarded my ports correctly, and I can't access the 'It Works!' page from my internet ip. I can access it from my local ip. What could be
wrong?

Computothought says: Nov 11, 2010. 11:53 AM REPLY


Your internet address will be differrent from your local address. ddns is a way around that. There are several free servers to allow to do that. web search
free ddns.

CalcProgrammer1 says: Jan 5, 2010. 12:06 AM REPLY


If you can't access the page from your Internet IP it may mean that your Internet Service Provider (ISP) blocks port 80 (the HTTP port that web pages
use). This is more common than I would like to believe for home ISP's and they'll use some lame excuse like "security" to back up their business-greed-
minded decision (they unblock port 80 at the "professional level" for an additional $20 because monopolies will do anything to force the extra buck
sometimes). I would try serving on different ports until you find one that your ISP doesn't block. I'm not sure how to change the port for Apache
(probably a setting file that you'll have to edit at the terminal) but to access HTTP sites at non-80 ports you tack the port number on to the IP or web
address such as http://192.168.1.1:210 (connecting to IP 192.168.1.1 [the standard router local IP] on port 210 [the alternative port I usually use for FTP
at school]). I like to use ports that are similar to the correct port, such as using 210 for FTP (which is normally 21) or 800 for HTTP (normally 80). If
these don't work, I also like ports 1337 and 31337 for obvious reasons.

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
Dms12444 says: Jan 29, 2010. 7:30 PM REPLY
Pardon my asking, but in Windows couldn't you just use IIS (internet information services), It's free (I think), and runs on Windows.

Computothought says: Nov 11, 2010. 11:51 AM REPLY


I will take xampp or wampserver (both free) over iis anyday. Besides iis does not come wih mysql or php. MsSQL is not free last I heard. Have not
programmed is asp.

Zicologo says: Jan 21, 2010. 9:19 PM REPLY


CalcProgrammer, is IE the only way you can use to upload files to the server?

Computothought says: Nov 11, 2010. 11:48 AM REPLY


I Install ssh and and openssh-server and then use WINSCP on mswindows to transfer files.

CalcProgrammer1 says: Jan 21, 2010. 10:55 PM REPLY


Certainly not! My favorite is FileZilla Client, it's an open-source program that is designed for uploading and downloading from FTP servers. It is available
for Windows, Linux, and Mac and it's in the repository of most Linux distributions so installing it shouldn't be an issue.

If you're using Windows to host a server, I also recommend the (Windows only) FileZilla Server, it is a solid FTP server that is probably the best
FTP server I've used on any OS. However, Windows isn't free and Linux is a stable server platform, but I switched my server to XP because of other
things I needed to run on it.

lilpepsikraker says: Feb 12, 2010. 7:47 PM REPLY


I'll give a thumbs up for FireFTP, it runs on any computer than can run Firefox 2 or higher (Win, Lin, OSX, whatever) and it pretty fast, being that it's
basically a plugin for Firefox.

ddvniek says: Dec 31, 2009. 4:55 AM REPLY


But what if you don't have Linux?????? What do you do then?? I have Microsoft Windows 7.

Computothought says: Nov 11, 2010. 11:45 AM REPLY


You can try something like wanp (wampserver). I am a linux person, but I had to set up a web server on windows xp to do a home automation demo for
friends.

http://www.instructables.com/id/Quicky-web-server-for-MSWindows-XP/
http://www.instructables.com/id/Home-Automation-MSWindows-XP/
There is also xampp for windows.

As soon as I have access to w7, I will do a couple of update instructables.

CalcProgrammer1 says: Jan 1, 2010. 2:00 PM REPLY


This Instructable covers setting up a Linux Server, thus it mentions Linux programs. However, if you want to use Windows for a server there are plenty
of great apps. I recommend FileZilla Server for FTP, Apache for HTTP, and TightVNC for remote access. I actually switched my Ubuntu server to
Windows XP after I wanted to use it to stream music to my Xbox 360, I have TVersity running to stream media and with Windows you can also share
your files locally on the LAN easily.

CyberJacob says: Aug 21, 2010. 9:06 AM REPLY


you can stream media from Ubuntu to an xbox, just find out what protocols it supports and install some daemons for them. hey LMGTFY -
http://adf.ly/5WP9

computerlover says: Oct 2, 2010. 11:50 AM REPLY

I am running Ubuntu 10.04 Lts. In the VNC, there is no option to make it public. how do I make screen sharing public?

declanthedork says: Feb 19, 2009. 7:09 AM REPLY


So far, this is a great Instructable. I just have a small problem. When I click apply changes, I get this. Error: user not found, couldnt change its settings. Could
you possibly tell me what it means? Thanks

declanthedork says: Feb 19, 2009. 7:13 AM REPLY


never mind! I did it! you have to click add, user, not apply. Stupid me! btw, awesome instructable!

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
harry599 says: Aug 24, 2010. 2:50 PM REPLY
wheres that??

account3r2 says: Aug 23, 2010. 5:22 PM REPLY


so........ this is just like a website?

account3r2 says: Aug 23, 2010. 5:20 PM REPLY


Google: http://72.14.204.104 or http://66.249.90.104

CyberJacob says: Aug 21, 2010. 9:11 AM REPLY


easy way to solve it, just tell them to go f**k themselves and open the port or you'll go somewhere else for your 'net connection

Lord_Drogoth says: Jun 3, 2010. 7:55 PM REPLY


i have a unknown error - Fatal: TLSRSACertificateFile: '/etc/gadmin-proftpd/certs/cert.pem' does not exist on line 56 of '/etc/proftpd/proftpd.conf' dunno
whats wrong but it says this every time i try to activate the ftp server any ideas?

yetiballer says: Feb 3, 2010. 2:36 AM REPLY


Hi there, I am having trouble installing the second program
it is saying, E: couldnt find package gproftpd
What can I do about this?

mellacita says: Jun 1, 2010. 8:50 PM REPLY


It's been renamed to " gadmin-proftpd " instead of " gproftpd ' if you have a version newer than 8.04.

snareshkumar says: May 9, 2010. 2:44 PM REPLY


I am getting an error when trying to install gproftpd

It's saying: "E: Couldn't find package gproftpd"

then i downloaded gadmin-proftpd from net

i am new user to linex .. so please explain me how to install it

pls pls pls pls pls pls pls pls

thank u in advance:-)

mellacita says: Jun 1, 2010. 8:48 PM REPLY


Did you type into the Terminal: " sudo apt-get install gadmin-proftpd ' after you downloaded gadmin-proftpd? The last word is different from the tutorial if
you have a newer version of Linux or something.

mellacita says: Jun 1, 2010. 8:44 PM REPLY


CalcProgrammer1, I think I've done everything right so far, but I can't get a couple things going:

- Can't get any options for uploading or downloading when I got to the FTP site--do I use a program like FileZilla to upload/download files? Is this supposed
to be entered in a browser? Ex: ftp://mysite.serverburger.net ? Or used primarily with one of those FTP programs?

- Where do I put files that I want to be on the net?

- When I try to edit index.html, it says its a read only file. What do I do?

I'm a totally noob with Ubuntu and servers, so pardon the silly questions.

Great job at this tutorial! C :

gramorgan says: Apr 19, 2010. 5:23 PM REPLY


Woo! GMod!

alanharber says: Mar 29, 2010. 6:56 PM REPLY


I'm running Ubuntu 9.10 and its not lettin g me install gadmin-proftpd what do i do?

http://www.instructables.com/id/Set-up-your-very-own-Web-server/
compsfreak17 says: Feb 19, 2010. 7:31 PM REPLY
for some reason the ftp server will not activate. i click the activate button and the status still says deactivated. anybody know a solution?

compsfreak17 says: Feb 22, 2010. 11:08 AM REPLY


never mind

Oli G says: Jan 16, 2010. 6:38 PM REPLY


I am getting an error when trying to install gproftpd

It's saying: "E: Couldn't find package gproftpd"

Package proftpd installed correctly. Thanks for your help

TyMan210 says: Jan 13, 2010. 12:38 PM REPLY


Lol @ "trekkie00".

Zoombus says: Jan 2, 2010. 7:04 PM REPLY


Thanks! I'll have to try this out sometime.

TyMan210 says: Dec 13, 2009. 9:32 PM REPLY


Yay, Ubuntu!

kenl92 says: Nov 2, 2009. 12:57 PM


(removed by author or community request)

CalcProgrammer1 says: Nov 2, 2009. 9:56 PM REPLY


You should be able to use 9.10. I haven't tried installing these packages in 9.10 so I don't know if it works exactly the same way. In 9.04 they changed
the name of the gproftpd package (gadmin-proftpd or something like that) and it was broken for a while but finally they fixed it. I would go ahead and use
9.10 and search for gproftpd or gadmin-proftpd if you can't find it. It may even be in the Ubuntu Software Center that is in 9.10.

barf_malak says: Nov 4, 2009. 7:06 PM REPLY


im trying to do this with ubuntu 9.10 and both of these packages dont work...

CalcProgrammer1 says: Nov 16, 2009. 12:41 PM REPLY


I think gadmin-proftpd is in the Ubuntu Software Center, just search for FTP or something, I found all the GAdmin apps for various services in
there.

misuka says: Oct 21, 2009. 10:30 PM REPLY


thanks it works!!! cheers!!!

briackman says: Jul 17, 2009. 6:01 PM REPLY


do i spy a garrys mod server? or is that something else?

oktanis says: Oct 8, 2009. 7:49 AM REPLY


LOL! you and i both wish XD Really late reply. Im not sure if you need to have steam on the machine ot host the server, but if you do its a no go as
Steam dosn't run on Linux. (Please correct me if im wrong haha)

CalcProgrammer1 says: Oct 8, 2009. 8:34 AM REPLY


It is Garry's Mod Server, you can run it in Wine (a program that lets you run Windows applications on Linux systems). You can also run Steam but
support for 3d applications (especially Direct3D) is limited.

dla888 says: Aug 29, 2009. 7:55 PM REPLY


Is there an alternative for installing this on intrepid Ibex?

view all 198 comments

http://www.instructables.com/id/Set-up-your-very-own-Web-server/

You might also like