PandaBoard Webserver

It is quite easy to run an Intranet or Internet webserver on a PandaBoard running Ubuntu. Therefore this tutorial assumes you are running Ubuntu on your Pandaboard. If you are running from an SD card and have space or speed issues you can always run from a USB harddrive (see my set up here:
http://adventuresinsilicon.blogspot.com/2011/04/pandaboardbeagleboard-how-i-make-my.html )


Running a webserver will allow other users on your network or the Internet to access webpages and anything else you wish to serve such as Nagios statistics, OpenKM servers, security camera footage etc.

For this process I will use Apache running on Ubuntu 10.11.

This also applies to a BeagleBoard running Ubuntu.



1. Update Repositories

The first step is to ensure you have up to date repositories so we will need to update apt-get with the following at a terminal:

sudo apt-get update

sudo apt-get upgrade


2. Next we install Apache using apt-get and the repositories:

sudo apt-get install apache2

This may take some time.

3. Test it is working

If you can open a webbrowser on the PandaBoard you can navigate to:

http://localhost/

Or if you accessing it over the network navigate to the IP address of the Pandaboard.

If it works you will be greeted with a "It Works" webpage.




4. Internet access

If you are behind a router and you want to access your webserver over the Internet you will need to allow access for the port 80 from the Internet to your server.

This will probably involve logging into your router and forwarding the port through the NAT. Unfortunately each router interface is slightly different so you will have to Google it if you don't already know how to do it.

Once your router is allowing access you should be able to put the ISP granted IP address into your browser and see your webpage.

To find out your ISP granted IP address you can go to this website to find out:
http://whatismyipaddress.com/


You can now register a domain name if you wanted but if you just want a name instead of a IP address then I suggest trying DynDNS (www.dyndns.com).


This will allow you to type the name of the dyndns address to access your webserver.  You can also set up most routers to update the dyndns record if your ISP changes your IP address.

If your DynDNS accout is "fred" then you could have the address fred.dyndns.org. This address can then be access anywhere on the Internet to access your webserver

5. Update your webpage

The apache server is set up to show the "index.html" file found at /var/www/

If you update this file you will update the content displayed by your webserver.

This is also the root level of the webserver.

I personally prefer the KompoZer application in the Ubuntu repositories to edit static webpages

Comments

José Mendes said…
Hi.
I have mine running with openjdk6+ geronimo 2.X Webserver + PHP 5.X and JAVA/PHP Bridge to allow PHP to run on WEB Apps. I use it with Drupal, Oscommerce, Wordpress etc. Not as fast as starting Apache but as more "visual control". Plus No-Ip to acess it....
Dingo_aus said…
Nice one, very interesting...