How to disable AppArmor?

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:45:25 UTC

Modified:

2017-02-21 16:38:48 UTC

6

Was this article helpful?


Have more questions?

Submit a request

How to disable AppArmor?

Question

How to disable AppArmor?

Answer

AppArmor is a security tool that uses name-based mandatory access controls to restrict or confine the system access of “at risk” applications. AppArmor is not supported by Plesk 12.x. Sometimes AppArmor can interfere with Plesk installation or functionality.

AppArmor can be disabled or removed as follows:

  1. Disable AppArmor using the following commands:

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

    Then, restart the server.

  2. Remove the apparmor package with your package manager:

    # apt-get remove apparmor
    

Do not purge apparmor if you think you might want to re-enable AppArmor at a later date.

Note : AppArmor is required for Docker on Ubuntu 14.04 and 16.04, so do not disable it on these operating systems. Plesk supports AppArmor on them.

Have more questions? Submit a request
Please sign in to leave a comment.