2

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.

mailq
  • 17,023
  • 2
  • 37
  • 69
Clark
  • 347
  • 2
  • 5
  • 13

1 Answers1

5

This is no problem with eCryptfs.

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

mailq
  • 17,023
  • 2
  • 37
  • 69
  • Ok thanks! This is some encrypted containers such as truecrypt? – Clark Aug 08 '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 08 '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 06 '18 at 21:04