LAMPPIX Mini is a LiveCD software based on Linux that enables users to run the operating system without installation onto their devices.
With LAMPPIX Mini, you can include your own pages, as in the desktop version. To do this, follow these steps:
Step 1: Your web server's document root - Pack all your documents into a tarball htdocs.tar.gz with the command # tar czf htdocs.tar.gz /var/www/htdocs/*
Step 2a: MySQL databases (optional) - Export your web server's databases as MySQL dumps using a program such as mysqldump or PHPMyAdmin. Save the dump with the name_of_the_database.sql, then pack all MySQL dumps into the tarball mysql-dumps.tar.gz with the command # tar czf mysql-dumps.tar.gz *.sql
Step 2b: PostgreSQL databases (optional) - Export PostgreSQL databases as dumps using pg_dump or a similar tool, then save the dumps into a tarball called postgresql-dumps.tar.gz.
Step 3: Write a shell script (optional) - Write a shell script and name it postinstall.sh. This script is run after the databases and the web server's content were installed. The document root directory is /opt/lampp/htdocs. This function is useful to set the access permission of your files or do other actions during the boot procedure.
Step 4: Copy the files htdocs.tar.gz, mysql-dumps.tar.gz, postgresql-dumps.tar.gz, and postinstall.sh into the directory 'www' of your CD-ROM. There are two ways to do this, either burn the ISO as multisession CD, then add your own files through a new session, or include your own files directly into the ISO file.
To include your own files directly into the ISO file, follow these steps under GNU/Linux (as user root):
1. Create two temporary directories with the command # mkdir master source
2. Mount the ISO file using the command # mount -o loop lamppix-mini.iso source
3. Copy all of its contents into the 'master' directory with the command # cp -a source/* master/
4. Unmount the ISO with the command # umount source
5. Copy your files into the master directory with the command # cp htdocs.tar.gz mysql-dumps.tar.gz postinstall.sh master/www/
6. Create the ISO with the command # mkisofs -V "LAMPPIX-Mini" -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o lamppix-mini-own.iso master
7. Remove the two temporary directories with the command # rm -Rf master source.
Overall, LAMPPIX Mini is a useful tool for web developers, allowing you to include your own web pages and databases if needed. The software is easy to use with clear instructions for customization.
Version 1.1: N/A