https://blog.anantshri.info/php-meterpreter/ TLDR: PHP meterpreter was broken in metasploit for sometime (read ~1+months), my experiments around how i found the issue and what i did to fix the issue. Details: https://blog.anantshri.info/php-meterpreter/ Key takeaways: don’t stop if things are not working as you expect. dig a bit deeper. don’t be afraid to submit pull requests (worst case it will be rejected.)