0

I am trying to run a php script within my fail2ban action file. When I disable selinux everything works fine, but when I enabled it again I get a constant error in my fail2ban log.

php.conf (action)

actionban = php /usr/share/nginx/html/worker/fail2ban.php <ip>

Error log:

 -- stdout: 'Could not open input file: /usr/share/nginx/html/fail2ban.php\n'

How can I run this file with Selinux enabled? Thanks in advance guys

Riccoh
  • 101

0 Answers0