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
  • 1
    Why have you got a `\n` in there? – DavidPostill May 08 '19 at 16:49
  • @davidpostill that has to do something with the error log system, because from my action config file there is no input for a new line or what so ever. – Riccoh May 08 '19 at 18:07
  • I found my answer @ https://superuser.com/questions/455935/php-script-cant-run-bash-script-sh-permission-denied By Tonin - Thanks – Riccoh May 09 '19 at 15:04

0 Answers0