Web and FTP Servers

when people hear the word server, a couple of things come to mind whether it be restaurant waiter, or maybe if you frequent media in the gaming community you may think something more along the lines of a “game server”. the former is more akin to what we will be talking about today.

in previous Labs if you may remember we talked about TCP/IP (Transmission Control Protocol/internet protocol) and how both are needed to make servers work. in this lab we will use that to communicate through networks to clients and servers. Well what is a client? and for that matter what is a server?

Client (n). : A webclient is a piece of computer hardware or software that accesses a service made available by a server. (1)

in simpler terms a client is any computer trying to access something on a server.

Server (n). : a computer program or a device that provides functionality for other programs or devices, called “clients“. (2)

first things first

we will need to disable the “Windows firewall”, to do this you will need to go to the “windows control panel” and access “System and security” there you will see the “Windows firewall”, in lab we were tasked to turn it off for the interest of time and the fact that we used KSU computers not our everyday machines but normally it is to be configured to allow traffic through to your webserver.

Next, we will need some software:

Image result for xampp
an example of the Xampp control panel

the software XAMPP will offer everthing you need to get a webserver up and running.


once we get the software and have disabled the fire wall we will then begin by running the program, and clicking on the “Config” button located on the right side across from the module titled “Apache”. it is important to know that the default TCP port is 80. However, if port 80 is in use you can easily change the port to 800 or even 8000 by opening the httpd.conf file and typing ctrl+F on the keyboard and searching Listen 80 and replacing the 80 with the desired port and clicking the save file.


Testing the webserver is as simple as typing http://localhost:(insert port#) into the URL bar of your internet browser. The localhost is the name of the machine being locally used and also know as the loopback address. which is used to test whether network communication and applications, pinging should send a reply unless firewall is preventing so.

if the server is correctly configured a webpage should be displayed. this is the default webpage.

with a little editing this is what the default server page could look like.

Getting to the ROOT of the DOCUMENT

DOCUMENTROOT is the directory on your machine where your webserver documents are located. Search for DirectoryIndex in the httpd.conf file.

Image result for httpd.conf apache example
the HTTPD.CONF file should look something like this example

Homepage creation

to create a simple webpage like the example previously mentioned, you can use notepad or notepad++ as a text editor for the servers webpage. you must save the file as index.html and disable the old index.php you can just rename the old file to index.old to disable. refreshing should result in the new page displaying. if other user know your ip address they also can access your servers webpage.

FTP: File Transfer Protocol

On Xampp you will see that you also now have the Filezilla FTP server, by clicking config button across from Filezilla you activate it you will need to activate your self as an ADMIN and you will need to setup a password. You will need to do this to login to FTP. You will be prompted with “Connect to server” so you can manage the system. the loopback address should default to which is used to test and configure you system.

Image result for filezilla xampp
the users page where you can add users and give them permissions

You can access the page above by selecting EDIT and going to the USERS MENU by clicking add you can add users, set passwords, and give permissions for each user once the user is created you are ready to test your setup. you should be able to access this ftp from other machines with the given information with programs like adobe dreamweaver and WinSCP.