exec - php can't execute any external command? -
we moved slackware centos here, working fine without notice, php stopped executing external calls such calls "wc" , "spamc". such calls appear on error_log as:
sh: /usr/bin/spamc: permission denied
the paths correct. have permissions set correctly , apache supposed able execute files no problem. we're not on safe_mode , not have base_dir set. not selinux, or @ least sestatus says selinux disabled.
summary:
- php can't execute thru exec() or popen()
- paths binaries correct.
- we not in safe mode
- we don't have base_dir set
- permissions on binaries allow apache user execute them
- selinux disabled
- disable_functions in php.ini empty
- we have no clue why doesn't work
php version 5.3.3 , centos 5.5
anyone has clue of might happening? in advance
selinux blocking attempts run them. recommend come rules allow run subset of external commands required , load module.
Comments
Post a Comment