I want to run the following on a single ubuntu 14.04 server - Asterisk - PHP/Apache/ MySQL

This server will be offline at customer's location.

I want to protect these folders in a way that if my hard drive is stolen, I will not have to worry about my source code and configurations being stolen also;

And mySQL  database

Any insight on how I can do this?

closed as off-topic by Jenny D, HBruijn, bodgit, Gerald Schneider, Thomas Feb 16 at 8:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HBruijn, bodgit, Gerald Schneider, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    You want to install a new server at your customer's location with an OS that is end-of-life and which will no longer receive security updates? Not a good idea. - If you need to protect your data against theft of the hardware it is stored on people typically will use (full) disk encryption, either with OS software or in hardware with TPM and self-encrypting drives. Either way: for that to be secure you will typically need to enter an unlock the data after each reboot. Good luck explaining that to your customers. – HBruijn Feb 14 at 13:25
  • 1
    I got my solution.. In case another person needs it, I combined the info @ these URLs =>; howtoforge.com/tutorial/encrypt-your-data-with-encfs-on-ubuntu AND serverfault.com/questions/470645/mount-encfs-at-boot – user3756834 Feb 15 at 11:24
  • Just be aware that mounting an encrypted drive/partition automatically at boot time means that when somebody steals the disk drive they will at the same time also have stolen the decryption password/key needed to defeat your encryption. – HBruijn Feb 15 at 14:53
  • Yea.. I know. What I did was to get the parameters I needed; like password and directory names from a chain 5 different bash scripts located at different places in the drive. These parameters were also formed from unique system information ( will be different in another system) ... you need to be a witch to figure it out. – user3756834 Feb 16 at 9:23

Do not build your system on end of life distributions. If you must, buy Ubuntu Extended Security Maintenance or similar support levels to get critical patches.

Disk encryption means casual theft of hard drives does not contain all your plaintext intellectual property. With the usability caveats that HBruijn mentioned, you need operations such as booting and backup restores to be possible.

Protection of your work often has non-technical solutions. Copyright your configs and enforce their proper use with some kind of agreement. Provide a good customer experience. Web apps and Asterisk VOIP are somewhat of a commodity, customers could get service from someone else if they find the IP controls too burdensome.

  • Thanks for the advice ... I have switched to ubuntu 18.* – user3756834 Feb 16 at 9:25

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