If you are running Plesk on a Ubuntu server and Bind fails to start the likely cause is AppArmor not being configured for Plesk’s chrooted environment.
All you have to do is add the path to the usr.sbin.named file.
1. Locate the file…
1 |
/etc/apparmor.d/local/usr.sbin.named |
2. Add the following path to the file…
1 2 |
/var/named/run-root/** rw, /var/named/run-root/usr/lib/**/libgost.so rm, |
including the comma.
3. Now restart AppArmor…
1 |
service apparmor restart |
4. Now you can start Bind…
1 |
service bind9 start |
I hope that helps some people.
Note: We used the /etc/apparmor.d/local/usr.sbin.named file to make sure our addition is permanent, and the package manager doesn’t over write it.