By default, SELinux does not allow inter-process communication, which prevents the Atatus PHP agent from collecting data. To allow the agent to collect data, you can either disable SELinux or modify the SELinux policies. The specific steps to modify SELinux policies will depend on your configuration.

Permanently Disable SELinux

  1. Open the SELinux configuration file: /etc/selinux/config.

  2. Locate the SELINUX parameter in the file and change its value to disabled. For example:

    SELINUX=disabled
    
  3. Save and close the file.

  4. Restart the webserver (fpm/nginx/apache).

Temporarily Disable SELinux

If you want to temporarily disable SELinux without rebooting, you can run the following command as root or with sudo privileges

sudo setenforce 0

If you reboot the system, SELinux is automatically enabled by default.