ComTech: IT Support Stirling

How to set up a basic Web Server on Ubuntu 12.04

This tutorial will show you how to set up a basic web server. For this tutorial I have used Ubuntu 12.04 LTS but the steps work the same on any Linux distribution.

Ok first thing to do is give your server a static ip address.  This tutorial will show you how.  Once done it is time to download the software you will need so open up a terminal and install the following packages:

apache2 php5-mysql libapache2-mod-php5 mysql-server

During the install process MySQL will ask you for a root password.  Make this something complex but do not forget it!!!

Once installed open up a web browser and type http://your-server-address (e.g and you will see the message IT WORKS! This means that you have a working web server.

Now it is time to add some content to your server.  All apache servers store their web data at /var/www but as default you can not write to this folder.  Open up a terminal and type:

sudo nautilus

Enter your password when prompted.  Navigate to /var and right click on www.  Then go to properties.  Add yourself as either the owner or group and give yourself “create and delete files folder access“.

Next thing to do is to download some ftp software.  Personally I recommend Filezilla. Open up a terminal and type:

sudo apt-get install filezilla

Once installed connect to your existing web server and transfer your files into /var/www.

Congratulations!! Your website is now hosted on your new server but it will not yet be visible from the internet.  Most networks sit behind a router which acts as a firewall, so to make your website visible you will need to forward http packets from your router to your server by opening up port 80 and redirecting it to your servers new ip address. is a good starting point to understand port forwarding.

You will also need to speak to your ISP about getting a static ip address for your router. Without this you will not be able to access your site everytime your ip address changes.

And that is it!! You now have a basic web server from which to host your own website.

About the Author

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.

For a list of what I can offer you why not visit my website where you will find a list of my services, testimonials, blog and much more.

How to configure sub-interfaces on a Cisco router

Today we are going to configure sub-interfaces on a Cisco router. We will configure the Fast Ethernet port 0/0 on a 1841 router to have two sub interfaces for vlans 1 and 2.

Hostname(config)#interface fastethernet 0/0
Hostname(config-if)#no ip address

Hostname(config)#interface fastethernet 0/0.1
Hostname(config-if)#ip address
Hostname(config-if)#encapsulation dot1q 1 native

Hostname(config)#interface fastethernet 0/0.2
Hostname(config-if)#ip address
Hostname(config-if)#encapsulation dot1q 2

Please note that the numbers at the end of the encapsulation dot1q x command indicate the vlan that the encapsulation will be active for.

About the Author


Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter



The internet is changing

Don’t worry it won’t be imminent but it will happening over the next 18 months or so.   You see the addresses that everyone uses at the moment are called IPv4 addresses (e.g and they are running out.  A new standard of addressing called IPv6 is designed to replace IPv4 in the next couple of years (estimates range from 2012 – 2016). So what exactly is IPv6 and how is it so different to IPv4?

IPv6 is a 128 bit hexadecimal addressing system (e.g fe80::154d:3cd7:b33b:1bc1) where IPv4 is only 32 bits (e.g  To put this in context if each address were a grain of sand , you could comfortably fit all the IPv4 addresses into the back of a small truck, however you would need 1.3 million Earths to fit all the IPv6 addresses in!!!

So there are more addresses anything else?  IPv6 also has built -in Quality of Service (QoS). This is the ability to provide different priority to different applications, users, or data flows, or to guarantee a certain level of performance to a data flow.  It also has improved security (IPSec is used by default), more efficient routing and simpler configuration.

So what does this mean to you?  Basically without some tinkering Windows XP will become obselete as this does not have IPv6 support enabled by default.  You would have to upgrade to Windows Vista or Windows 7 (possibly Windows 8 if it is released).  Windows Vista, 7, Server 2008, nearly all Linux distributions and Mac have IPv6 support enabled by default so running any of these is fine.  Chances are though that your router is not IPv6 enabled so you would have to buy a new one of these.  The way your computer gets its IP address would be exactly the same.  If like me you work in the IT sector you will need to become familiar with IPv6 and how to configure it.

There will be a transition period when everyone will be switching over so its not like someone will flick the switch and the internet will be turned off so don’t worry.  The change is on its way.

IPv6 is coming that much is certain.  Now is the time to start looking at your infrastructure and see if you are able to make the transition smoothly.  This is where ComTech can help.  I can advise on different setups, configure them where necessary and maintain them on a schedule dictated by you.  Go to for more information.

If you found this blog useful then why not sign up to my RSS Feed for news, tutorials, views and general techie stuff!!


Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates