Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.