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 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办