Php func "exec" not work from AGI

exten => s,n,AGI(recognize.php,/tmp/${UNIQUEID},${CALLERID(num)},${CALLERID(dnid)})

this is part custom context from exten_custom

#!/usr/bin/php -q
<?
exec('echo \"test\" > /tmp/test.txt');
?>

this is php script

from http or manual start at root working, from freepbx - not working. safe_mode = Off, disabli_functions empty in php.ini.
755 chmod, chown asterisk:asterisk
centos 6.5 i386 at openvz vds.
FreePBX 2.11.0.37
Asterisk 11.7.0

log:

[2014-07-02 18:24:47] VERBOSE[7771][C-00000000] pbx.c: -- Executing [[email protected]:4] AGI("SIP/101-00000000", "recognize.php,/tmp/1404311082.0,101,100") in new stack
[2014-07-02 18:24:47] VERBOSE[7771][C-00000000] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recognize.php
[2014-07-02 18:24:47] VERBOSE[7771][C-00000000] res_agi.c: -- <SIP/101-00000000>AGI Script recognize.php completed, returning 0

help, please. i need “exec()” in php agi

im sorry, <? vs <?php
)))

ls -al /tmp/test.php

and

sudo -U asterisk recognize.php