I got a problem with the shell_exec php function, here is a example code:
shell_exec
$output = shell_exec(\'nmap -PS80 -n -oG - --send-ip 11.11.11.11\
Try to specify full path to nmap like /usr/local/bin/nmap. PHP might not know about nmap location. Enjoy!
/usr/local/bin/nmap