Collaboration: Chroot + PHP 7.3.33 (FPM) + ffmpeg

SYSTEM INFORMATION (new server
kernel Linux 5.4.0-148-generic на x86_64
OS type and version Ubuntu Linux 20.04.6
Virtualmin version 7.7
Webmin version 2.021
Authentic theme version 20.21
Virtual Server Summary
PHP version 7.3.33 ( FPM )
SYSTEM INFORMATION (old server)
kernel Linux 5.4.0-148-generic на x86_64
OS type and version Ubuntu Linux 20.04.6
Virtualmin version 7.7
Webmin version 2.021
Virtual Server Summary
PHP version 7.3.33 ( FCGId )

Hello. On the new server, due to the fact that I use PHP 7.3.33 (FPM)
и + “Chroot jail domain Unix user”
I cannot interact with ffmpeg located at :/usr/bin/ffmpeg.
The php script shows the inaccessibility of ffmpeg.

I tried many methods of normal ffmpeg work, but everything was unsuccessful.

Copy the program to the Chroot home directory, it is not possible due to the large number of libraries.

With Chroot disabled, the script runs normally.

I wanted to configure it like this: Chroot + PHP 7.3.33 (FPM). And working with ffmpeg, from the script on the site.
How to do this?

p.s. the old server runs the Chroot + PHP 7.3.33 bundle (FCGId), while the php script works normally with ffmpeg



old server

new server

aren’t there any options?

:wave: at least give an answer to what thread.

A chroot jail must have all binaries you want the jailed user to be able to use within the jail.

There is a command to add binaries to an existing jail (jk_cp). And, there is a Webmin module to provide a GUI for jail configuration, but the package for it is a bit funky right now (it’s named webmin-webmin-jailkit, due to an issue in my build script).

This module? https://github.com/virtualmin/webmin-jailkit

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.