doujuanju3076 2015-01-21 14:34 采纳率: 0%
浏览 338

PHP exec()在命令行中工作,但在通过浏览器执行时不工作

I have the following line in a php file called batchrender.php:

exec('/Applications/Adobe\ After\ Effects\ CC\ 2014/aerender -project /Users/abc/Sites/AETEST1.aep -comp "Komp1" -output /Users/abc/Sites/xyz.mov');

When I call this file via web browser it should render a movie with the aerender unix command.

The output is

PROGRESS: ...After Effects successfully launched...

but that's all and it stops executing without any error. No movie is rendered. (No counting frames are displayed)

When I execute the exact same php file from the command line interface (Terminal) like:

 $ php batchrender.php

All works perfect and it starts to render the movie.

in the httpd file the user for apache2 is defined as "abc" and group is "staff" the terminal is also started with user "abc"

  • 写回答

1条回答 默认 最新

  • 树_皮 2022-02-23 11:17
    关注

    你这个问题解决了吗?

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器