setsebool
utility in the setsebool boolean_name on/off
form to enable or disable Booleans.
httpd_can_network_connect_db
Boolean:
Procedure 10.10. Configuring Booleans
httpd_can_network_connect_db
Boolean is off, preventing Apache HTTP Server scripts and modules from connecting to database servers:
~]$
getsebool httpd_can_network_connect_db
httpd_can_network_connect_db --> off
~]#
setsebool httpd_can_network_connect_db on
getsebool
utility to verify the Boolean has been enabled:
~]$
getsebool httpd_can_network_connect_db
httpd_can_network_connect_db --> on
setsebool -P boolean-name on
command as root:
[19]
~]#
setsebool -P httpd_can_network_connect_db on
setsebool httpd_can_network_connect_db off
command. For changes that persist across reboots, run the setsebool -P httpd_can_network_connect_db off
command.