phantomJS在通过PHP执行时不起作用

时间:2013-08-18 22:14:07

标签: php phantomjs

我已经在我的服务器上安装了phantomJS(到/ usr / bin / phantomjs),当我以root身份从shell运行它时它工作得非常好,但是当我尝试通过PHP运行它时它不起作用, 那些是我试过的命令:

exec('/usr/bin/phantomjs --version');
shell_exec('/usr/binphantomjs --version')
exec('phantomjs --version');
shell_exec('phantomjs --version')

所有这些都是空的, 我检查过apache用户有权访问这个文件夹,甚至使用php exec函数移动它。 我试图用两种系统类型运行它(我运行Linux redhat 64bit) 还有什么可能是我的问题?

0 个答案:

没有答案