Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Sunday, August 13, 2017

sugarcrm and selinux

selinux prevents the httpd server(apache from sending emails or connecting to a remote database unless permission is explicitly granted by setting boo leans as follows.
  1. to send emails  usng the httpd server using php mail()which sugar does 
  2. set httpd_can_sendmail must be set to tru using the :setsebool command
  3. like this "setsebool -P httpd_can_sendmail 1"
  4. to connect to a remote mysql instance not at local host you must set the httpd_can_network_connect_db boolean like
  5. setsebool -P  httpd_can_network_connect_db 1