“It’s a good test. nod of approval.” - Singer, 3/4/2000
There are 6 sections to this test, totalling 150 Marks. This is an HOUR long test, and you must attempt ALL Sections.
All answers are to be brief, relative to the marks allocated for each one.
Your task is to write a Web database which uses PostgresSQL for the backend with a CGI perl interface flashed up with PHP and VRML. Haha, only joking. Here’s the real test:
- Name two web servers other than the Apache web server, and explain why RedBrick uses Apache. (6 Marks)
- List 2 ways that you could start the apache server.(4 Marks)
- State the latest, stable release of apache. (2 Marks)
- Name apache’s main configuration file and two of it’s log files. (4 Marks)
- Name a program that you could use to give you statistics for the apache server.(3 Marks)
- Name two apache modules. (4 Marks)
- Name the port that a webserver typically runs on.(2 Marks)
- GIF, JPEG, BMP, & PNG are all graphics file formats. Which one would you use on the RedBrick page? Why would you use it as opposed to the others? (8 Marks)
- Which is better - a lot of small images on a webpage, or a few large ones? Why? (5 Marks)
- The current RedBrick webpages integrate graphics and text seemlessly. What HTML structure lets them do this? (4 Marks)
- Should HTML code be indented? Explain your answer briefly. (4 Marks)
- What are SSI’s? What’s the primary advantage of using them? (4 Marks)
Where you are asked to write a program in this section, assume you’ll be writing/running it on Enigma, and use your programming/ scripting language of your choice.
- What does CGI stand for? What is a “CGI script”? (5 Marks)
- Assuming your web server has CGI support, what are the criteria for a CGI script to run on Enigma/Unix-like OS ? (5 Marks)
- Write a program that prints all environment variables. (4 Marks)
- Write a small man page gateway. (12 Marks)
- On Enigma, under Apache’s suexec model, which user does a CGI script run as?
a) The user who’s executing the script
b) The user who owns the script
c) The webserver (ie, the User ID that that runs under)
d) Joey-Jo-Jo Junior Shabadoo
All of the following are worth 2 Marks.
a) Why the webmaster would need root access, if at all.
b) 2 requirements for root access.
c) What you would do to physically get root access.
(6 Marks, ie. 2 Marks each)
- You just downloaded the latest mod_perl package from the net, because bubble threatened to kick your ass if you didn’t. The file looks like this: mod_perl-1.0.1.tar.gz What command(s) do you issue to “unpack” it? (4 Marks)
- What is the path to the web tree on Enigma? (3 Marks)
- Name 2 document resources you can consult when dealing with a user who has dodgy content on their webpage. (4 Marks)
- Give 3 examples of “dodgy” or prohibited content. (3 Marks)
Do either 1) OR 2) from this section.
- Explain, as briefly as possible, what exactly happens when you request a page from a website, mentioning the Internet Protocol used and what part the webserver plays in it. [ie, the process involved from when you type in “www.redbrick.dcu.ie” (or whatever) to when the website appears on your screen]. (20 Marks)
- Explain what a “chrooted” webserver is. What are the advantages in having such a server? Mention the security features of such a setup, and why aren’t all webservers chrooted? (20 Marks)
Printed by Eileen(tm)