Server2Go is a free Web server which gets deployed out of the box without any installation, it can run directly from cdrom, usb stick or hard disk without installing anything on the machine.
This particular advantage of Server2Go allows you to create a standalone no-installation working dynamic web site or PHP/Perl/SQL application on a CD-ROM or USB drive.
Using a web browser, a user can run php programs as well as view html files on the CD-ROM, as soon as the CD is inserted the standalone web server launches and opens a browser with the Website on the CD-ROM.
Server2Go was build to replace WampOnCD which lacks some important features and isn't actively developed.
There exist several options for the server according to your requirement:
PHP 5.2.3 with SQLite
PHP 5.2.3 with SQLite, MySQL 5.0.41
PHP 5.2.3 with SQLite, MySQL 5.0.41, Perl 5.8