php-reverse-shell.php issue

@ivanitlearning said:
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

No luck there either. Every exploit I tried, nothing happened and then when I exited it would say “exploit successful. No session created”