When I'm trying to execute a PHP script using shell_exec()
, it's not working.
In the error_log file it shows:
PHP Warning: shell_exec() [function.shell-exec]: Unable to execute 'php /home/snabbsam/public_html/.....
System
Centos
shell_exec works with clamscan
shell_exec()
works on clamscan()
function of clamav.
But it's not executing PHP script
Things I've checked:
- PHP
safe_mode
is off shell_exec()
is not present indisable_functions
in php.ini- Tried giving executable permission to the file & the parent folders as suggested in https://stackoverflow.com/a/8668666/402089