【发布时间】:2015-08-20 13:33:04
【问题描述】:
我无法从 Exec 运行命令行脚本
$exec = exec($command, $output, $return );
我试过 passthru,shell_exec,system 但显然这不是问题。
sudo chown -R www-data:www-data /root/path/nonce.py
sudo chmo 775 /path/nonce.py
sudo chmo 777 /path/nonce.py
sudo chmo 755 /path/nonce.py
没有帮助
exec("python -V 2>&1");
作品
但是
/usr/bin/python /root/path/nonce.py
Array ( [0] => /usr/bin/python: can't open file '/root/path/nonce.py': [Errno 13] Permission denied )
剂量
在 nginx 和 php5-fpm 上运行
【问题讨论】: