I was hoping someone could kindly help myself. I have a Magento site running on a Centos 7.6 server.
Now, the site is not correctly loading and looking in the messages.log I see numerous entries where SElinux is blocking access. I am able to confirm it is a SElinux issue as setting in permissive mode fixes ("used loosely") the problem.
Running
sealert -l 3bedf708-7636-44d4-95f6-c98b8ea16687
, I see the following:SELinux is preventing /usr/sbin/httpd from write access on /var/www/html/MyMagentoSite/var/session/
There is various entries for different files and folders.
Would I be okay in just running chcon -R -t httpd_sys_rw_content_t /var/www/html/magentofoldername/*
, or what would be a better solution?
This seems counter intuitive, in that I am giving read and write to all within the magento folder.