(home) (about) (rss)

Part 4, Section 2:
Web Development and Security.

I love LAMP.

We've been going back-and-forth from Assembly to Networking, but here's the first time where a lot of this is gong to come together in a nice, satisfying way.

Here's a problem: a lot of the stuff we'd like to practice (breaking SQL, looking at the security of certain websites, etc.) requires us to have our own website and SQL server to practice on (lest we get into some sticky legal areas), but buying a domain name and getting a host costs money. Alas. Why can't we just be our own server? In fact, we can. Enter: LAMP.

LAMP is a web development framework (we'll talk about what that means in a little while) which stands for Linux-Apache-MySQL-PHP. Luckily, we've already done half of this: we have Linux (in the form of Ubuntu) and we have worked with MySQL. We just need to check out Apache and PHP. We'll do Apache first since it's relatively easy to set it up.


Apache is a web server software; we will be using it to host practice web pages and databases. One could (and many do) use this software along with a server (which could be a computer, for example) to allow others to access their web pages through the internet. For now, we'll restrict ourselves to just making and hosting pages that we'll practice with.

Installing Apache is easy: go here and follow the instructions in the Install Apache 2 section. Then, install PHP (we'll need it later) by using the commands (with sudo):

apt-get install libapache2-mod-php5 php5 php-pear php5-xcache

apt-get install php5-suhosin

apt-get install php5-mysql

Good job, pal. Now,

  1. Apache Exercise!

  2. HTML Exercise!

  3. HTML Tables Exercise!

⇐ Back to 4.1HomeOnwards to 4.3 ⇒