exec() problem
| From: | A. Mannini | Date: | Sat, 14 Nov 2009 21:20:30 +0000 |
| Subject: | exec() problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299822@lists.php.net to get a copy of this message | ||
Hi all,
i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted.
I would run /usr/lib/mailman/bin/find_member -l <list> <email> so i used exec("sudo run /usr/lib/mailman/bin/find_member -l <list> <email>",$output) and set /etc/sudoers with apache ALL=NOPASSWD:
/usr/lib/mailman/bin/find_member but it doesn't work.I tried simple commands "/bin/ls" works, "sudo -V" work but "sudo /bin/ls" doesn't work. I get return code 1 and no messages in logs.. What is worng? Thanks Alessandro