CS183 Lab 7: LAMP and Web Caching

Goal: In this lab, you will learn how to install and configure the Apache Web server, MySQL Database, PHP and Squid Cache Server.

Details: LAMP stands for Linux, Apache, MySQL and PHP, which is a very common combination platform for Web Programming. Squid Cache Server, on the other hand, is a very popular, high-performance and free web cache server.

You will need to use 2 VMs for this lab: the Router VM as a server and the Host VM as a client. You will need to install the Apache Web Server, MySQL, PHP and Squid Web Cache on the Router VM. Then you will verify them by using either wget or telnet from the Host VM.

Apache Web Server

PHP

MySQL

Squid Cache Server

Questions

  1. Should the "FollowSymLinks" option in the web server config file be disabled by default? Why and why not?
  2. Explain what <? phpinfo(); ?> does in the index.php?
  3. Explain the code in gradebook.php. Show the result that generated by gradebook.php from the Host VM.
  4. Why does the second download via the Squid Cache take a lot less time than the first time? Show the result from both downloads.

Scoring


Notes & Tips: