I have a cPanel server where the main disk is unencrypted. I've attached an encrypted disk to the server to store all customer private information. My plan was to mount the disk as /home and then symlink all necessary folders to that /home partition.
- Mount the new drive as /home
- Symlink /var/lib/mysql to /home/mysql (configure MariaDB ProtectHome=false)
- Symlink /var/log to /home/log
- Symlink /usr/local/apache/domlogs/ to /home/local/apache/domlogs/
- Symlink /usr/local/apache/logs/ to /home/local/apache/logs/
- Set backups to /home/backup
Would this work? Am I missing anything? Anything wrong with this plan?
The goal is to have all customer information (logs, files, database) all stored physically on the encrypted drive and not the unencrypted drive.
- Mount the new drive as /home
- Symlink /var/lib/mysql to /home/mysql (configure MariaDB ProtectHome=false)
- Symlink /var/log to /home/log
- Symlink /usr/local/apache/domlogs/ to /home/local/apache/domlogs/
- Symlink /usr/local/apache/logs/ to /home/local/apache/logs/
- Set backups to /home/backup
Would this work? Am I missing anything? Anything wrong with this plan?
The goal is to have all customer information (logs, files, database) all stored physically on the encrypted drive and not the unencrypted drive.