AMP system on CD AMPonCD is a Perl script that configures and starts an Apache and MySQL daemon directly from CD. Since Apache and MySQL need to write some files to disk the script creates a temporary directory under %%Temp%%/Apache. Both daemon run on non-standard ports which lets you run AMPonCD even on computers that run other instances of Apache and MySQL daemons. Additionally AMPonCD contains PHP both in the CGI and mod_php version and ActiveState´s Perl. Adding your content |  |
This distribution will run out of the box. All you need is to add your content to the \htdocs directory which is Apache´s DocumentRoot. MySQL´s DataDir is \database. All your databases need to be added to this dir. Make sure that all PHP and Perl scripts that need to write any data to disk know the proper path: e:\temp\Apache. Your scripts can get that path by looking up the TEMP environment variable. In PHP this is done using the following code: <?=$_ENV['TEMP']?> When connecting to the MySQL server keep in mind that it listens on port 8182 or whatever port you changed it to. Likewise Apache is listening on port 8181. | x-author - cross media content management system | more |
| WAMP on CDHave you ever wondered how to put dynamic websites on a CD? Here´s the solution. Use a WAMP system that runs completely off a CD. The latest version is available for download from here. |