- Advertisement -
25.6 C
Home Guide Plesk 12.5, bind9 and Ubuntu 14.04...

Plesk 12.5, bind9 and Ubuntu 14.04 Apparmor Issues

- Advertisement -

After settings up Plesk 12.5 on my new Ubuntu 14 server, I found out that bind9 (DNS server) was not running like the others from the service interface, so I tried to start the service or program but I received the following error.

Error: Unable to make action: Unable to manage service by dnsmng: (‘start’, ‘dns’). Error: dnsmng: Service /etc/init.d/bind9 failed to start

- Advertisement -

Error from /var/log/messages reads:

Kernel: [6858.107517] type=1503 audit (1375351936.035:25):  operation=”open” pid=21824 parent=21822 profile=”/usr/sbin/named” requested_mask=”::r” denied_mask=”::r” fsuid=107 ouid=0 name=”/var/named/run-root/etc/named.conf”

The cause of this is that apparmor is not letting Plesk panel to access what it need to work with Plesk. Odin team advises that you disable Apparmor as it is not supported by Plesk.

So I will show you how to do that;

How to disable Apparmor on Plesk server

  1. First we check if bind9 is installed with the following command
# dpkg --status apparmor | grep -i status

The output will be;

Status: install ok installed

2. Now run the following command one after the other

# /etc/init.d/apparmor stop
# /etc/init.d/apparmor teardown
# update-rc.d -f apparmor remove

3. Update or reinstall bind9 packages using apt-get

# apt-get install bind9

4. Update the list of installed components in Plesk with the following command

# /opt/psa/admin/bin/packagemng --set-dirty-flag
# /opt/psa/admin/bin/packagemng --list

After that go back to plesk admin panel, go to tools & settings under server management go to services management then restart bind from there.

Update 15/03/2016

After a week of using the plesk server i decided to update some programs using apt-get update and apt-get upgrade and there it was Bind9 update available but it failed install because of apparmor is enabled again. I got the below error

Stopping domain name service… bind9                                 [ OK ]
 * Starting domain name service… bind9                                 [fail]
invoke-rc.d: initscript bind9, action “restart” failed.
dpkg: error processing package bind9 (–configure):
 subprocess installed post-installation script returned error exit status 1
Setting up usbutils (1:007-2ubuntu1.1) …
Setting up cloud-init (0.7.5-0ubuntu1.17) …
Leaving ‘diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init’
Processing triggers for libc-bin (2.19-0ubuntu6.7) …
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
On checking the log file i found the below error message in the log /var/log/syslog;
[62079.088894] type=1400 audit(1457566503.779:11): apparmor=”DENIED” operation=”open” profile=”/usr/sbin/named” name=”/var/named/run-root/etc/named.conf” pid=2627 comm=”named” requested_mask=”r” denied_mask=”r” fsuid=108 ouid=0
We will be adding it to the local file so it will interfere with bind9 again, so open the following files using your best editor mine is NANO. If you are not doing this as root don’t forget to add sudo
nano /etc/apparmor.d/local/usr.sbin.named

add the below text to the file;

# Allow Plesks configuration for bind9 to run with Apparmor peacefully
/var/named/run-root/** rwm,

after that you need to reload the file so changes can take effects, using the following command;

# Reload Apparmor profile
service apparmor reload

# Start bind9, should work now
service bind9 start

Now you need to restart Plesk Panel

service psa restart
Below is the message i received after successfully implementing this.
Setting up bind9 (1:9.9.5.dfsg-3ubuntu0.8) …
 * Stopping domain name service… bind9                                 [ OK ]
 * Starting domain name service… bind9   


- Advertisement -
- Advertisement -

Trending Now

Elephone S9 With 18:9 Aspect Ratio, 3 Cameras and Android Oreo OS Announced

June 2017 was barely 17 days old when Elephone released the Elephone S8 - which was a tri-bezelless beauty accompanied by 4GB RAM, 2K...
- Advertisement -

Startimes Subscription Prices, Packages and Channels List in 2020

StarTimes Nigeria is one of the popular cable TV providers in Nigeria. This service is a subsidiary of a Chinese based company called Startimes...

Best Low Size PC Action Games For Your Old PC/Laptop With Low Specs

Gaming time is one our favorite time and nothing beats the ability to play high-quality games on our PCs but like some of our...

GB WhatsApp, WhatsApp Plus and OG WhatsApp Tips and Tricks

Checkout the new GB WhatsApp Tutorial.Hello, welcome to WhatsApp Plus, OG WhatsApp and GB WhatsApp tips and tricks. For the sake of this article,...

GB WhatsApp Pro, OG WhatsApp Pro V8.10 (GB OG Replacements) Latest Version

Good day peeps, the latest GBWhatsApp is here... and it is called the GB WhatsApp ProRemember earlier, GB Mods the maker of GB WhatsApp...

10 Best Places to Download Bollywood Movies

Do you spend hours watching Bollywood movies as I do? Have you been in search of the perfect sites to download the best Hindi...

DStv Channels List, Packages and Prices in 2020

Thousands of people in Nigeria have put their trust in DStv to provide them with the very best of television shows and programs.DStv (Digital...

All iTel Smartphones Firmware/ OS Updates (Free Download)

Good day and welcome. I used to think Itel doesn't make patches or updates for their devices as the update page in settings always...

5 Best Blood Pressure Apps for Android

Blood pressure is the pressure the blood applies that on the walls of the vessels they use in travelling. There are two conditions relating...

How to Make Payment for Your StarTimes Subscription

StarTimes users must be super excited about how easy it has become to get their cables subscription done. All you need in 2019 is...

How to Fix Home Key, Recent Key and Notification Bar Not Working?

There is a bug in the Android OS that dates back as far as the Lollipop Version and it is one of the most...
- Advertisement -

Related Posts

How to Install Monstra CMS on a Centos Vps

Monstra is a modern and fast Content Management System (CMS) written in PHP. It has a tons of useful plugins and themes, and it...

How to Configure APN Settings on Android?

Android's biggest draw has been the vast amount of customization that makes it possible. Although some of these options are available for any newbie...

What should You Do, if iTunes not Recognizing iPhone?

Trying……..  trying………. Still your iTunes not recognizing iPhone?Well, iPhone or even iOS users have been facing many problems with iTunes. we know that. But...

Effective Tips to Check If Your Online Account Is Hacked

Personal data and information have never received this much thought ever before. Ad companies want to buy them (data and information), some companies want...

How to Check if Apps Are Fake in the Google Play Store?

The first thing that comes to mind when we get our hands on a new mobile device is to install our favourite apps from...
- Advertisement -


Please enter your comment!
Please enter your name here