我遇到运行屏幕会话的脚本问题。
<?php exec("screen -m -d ffmpeg2theora -v 3 /path/to/video.mp4"); ?>
并在日志上看到:
Wed Oct 17 16:17:39 2012] [error] [client 83.5.x.x] sh: 1: screen: not found, referer: http://xxxxxx.xx
它停止了一些更新(apache / php / suphp?),之前就像魅力一样 任何想法是什么,如何配置suPhp / Apache?
答案 0 :(得分:0)
相反,只需:
exec("ffmpeg2theora -v 3 /path/to/video.mp4 &");
答案 1 :(得分:0)
如果您希望PHP在后台启动长时间运行的命令,为什么不尝试以下操作:
<?php pclose(popen("/usr/bin/nohup /path/to/ffmpeg2theora -v 3 /path/to/video.mp4 >/tmp/result 2>&1", "r")); ?>
在这种情况下使用命令的显式路径总是明智的。