rackspace-cookbooks/magentostack

SELinux prevents httpd from connecting to 3306

Closed this issue · 2 comments

When running MySQL remotely, SELinux prevents httpd from connecting to outgoing port 3306. To allow this connection the following command needs to be run

# setsebool -P httpd_can_network_connect_db 1

Do we have a preferred way to manipulate SELinux state in chef, or just run execute?

Found this cookbook for potential usage: https://github.com/skottler/selinux

Per @gondoi, this was a mistake in our cloud server images that should be resolved shortly.