Take the 2-minute tour ×

I need it encrypted and be decrypted just only when apache started, so this is the plan:

  1. Boot computer.
  2. Decrypt /var/www and mysql databases files.
  3. Start apache.

So maybe its the path not to use mountion encrypted containers like truecrypt do.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This is no problem with eCryptfs.

Create two partitions as eCryptfs and mount it after boot under /var/www and /var/lib/mysql.

share|improve this answer
Ok thanks! This is some encrypted containers such as truecrypt? –  purple Aug 8 '11 at 20:57
If you like to call it that way. Follow the Wikipedia article and the referenced documentation. But this is what you requested. –  mailq Aug 8 '11 at 21:03

Your Answer


