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.


This is no problem with eCryptfs.

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

  • Ok thanks! This is some encrypted containers such as truecrypt? – Clark 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
  • My little question about this situation, could we able to make Apache acts as a physical user and it automatically mount those locations? @mailq – SaidbakR Jun 6 '18 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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