CSCI 470
Web Science
Spring 2014

Montana Tech
Computer Science & Software Engineering



PHP and Apache modules

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.
You will further investigate a dynamic content generating technology of your own choosing.


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 the previous assignment. The PHP script will store the pairs in files in the /var/www directory. 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. Create final version of the name/value pair program using a dynamic content generation technique of your own choosing (but not CGI, PHP or an Apache module). Some possibilities include FastCGI, mod_perl, mod_python, a custom web server, or a web server besides Apache. The student achieving the fastest average requests per second will be awarded extra points.

Part 5. Benchmark your PHP, Apache module, and other technique 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 all three versions 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, get_mod.php, set_mod.php, mod_lookup.c, readme.txt, and the relevant source code for your final technique to the Moodle dropbox. The Moodle timestamp is the completion time for the assignment.

Page last updated: December 30, 2014