CSCI 470
Web Science
Spring 2013

Montana Tech
Computer Science & Software Engineering



Assignment #2
Due: Thursday 1/31, 10PM

You will be adding PHP server-side scriping to your web server. You will be implementing and benchmarking a PHP version and an Apache module version of the file-based name/value pair program.


Part 1. Install, configure, and test PHP on your Apache server. Part 2. Create a file-based name/value pair storing program just like in Assignment #1. The PHP script will store the pairs in files in the /var/www directory. You will need to set the permissions of this folder as in Assignment #1. Part 3. Create an in-process Apache module version of the name/value pair program. The module will store the pairs in files in the /var/www directory. You will need to develop the module in C. Part 4. Benchmark your PHP and Apache module versions using the Apache benchmark utility ab. Type ab with no arguments to get a list of its features.

Complete this readme.txt file with the requests per second you measure using ab connecting locally to your server (that is using the base URL http://127.0.0.1). Run results for both the PHP version and the Apache module version of the application.
Submission. I will be testing your application by logging into your sever, starting Apache and then going to your get and set pages. Submit the files lookup.php, set.php, get.php, header.php, footer.php, get_mod.php, set_mod.php, mod_lookup.c, and readme.txt to the Moodle dropbox. The Moodle timestamp is the completion time for the assignment.

Page last updated: May 15, 2013