AppArmor mod_php + MySQL

1

Is there any way to get AppArmor to work with Apache2 + mod_php + MySQL?

I've already tried sudo aa-complain apache2 and sudo aa-logprof, but still I get a database connection error.

NerdOfLinux

Posted 2018-09-05T11:48:25.433

Reputation: 147

Answers

1

I figured it out, according to this bug report, the temporary fix is to add attach_disconnected to the flags at the top of the profile. Something like:

/usr/sbin/apache2 flags=(attach_disconnected)

NerdOfLinux

Posted 2018-09-05T11:48:25.433

Reputation: 147