php-reverse-shell.php issue

Have you tried generating a PHP reverse shell with msfvenom instead? That works too.
Not sure which this box is, but I got the same error when I used pentestmonkey’s reverse shell found in /usr/share/webshells/php/. This was for a Windows box.

WARNING: Failed to daemonise. This is quite common and not fatal.
Successfully opened reverse shell to 10.10.10.28:80
ERROR: Shell connection terminated