After having tuned your Debian server according to the article Install Debian on a server with a Compact Flash main disk, you plan to use it as a LAMP web server.
Once you have installed all the Apache, Php & MySQL packages with aptitude, you then need to do some specific tuning on these packages configuration as your server is running on Compact Flash.
This article describes all the ajustments I've done on my server to setup :
- Apache to deal with /var/log on tmpfs
- PHP to save sessions on tmpfs
- MySQL to fully load the database in memory (small one)
This setup is specific to my needs and has been done to minimize the disk access to the CF.