Php system () function error sh: ffmpeg: command not found

1 ffmpeg is installed on the centos7.3 server and environment variables are added in etc/profile/. And the ffmpeg command can be used normally in the server

2.phpsystem()ffmpegroot

3.php

which boss can help with the answer? I am grateful.

Jan.24,2022

your ffmpeg is not installed under / bin or / usr/bin, so try calling through the absolute path:
system ('/ monchichkey/ffmpeg/bin/ffmpeg');


another possibility is that the lack of a corresponding extension in your ffmpeg may also lead to execution failure. Execute it on linux now. If it succeeds, use the code to execute

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea898f-1ee2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea898f-1ee2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?