I need it encrypted and be decrypted just only when apache started, so this is the plan:
- Boot computer.
/var/wwwand mysql databases files.
- Start apache.
So maybe its the path not to use mountion encrypted containers like truecrypt do.
This is no problem with eCryptfs.
Create two partitions as eCryptfs and mount it after boot under /var/www and /var/lib/mysql.