PHP exec() works in command line but not when executed via browser

 ̄綄美尐妖づ 提交于 2020-01-24 01:17:51

问题


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"

来源:https://stackoverflow.com/questions/28069744/php-exec-works-in-command-line-but-not-when-executed-via-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!