Customer wants WP-CLI in jailed site

SYSTEM INFORMATION
OS type and version Ubuntu 22.04 LTS
Webmin version REQUIRED
Virtualmin version REQUIRED
Webserver version REQUIRED
Related packages SUGGESTED

All above is latest.

I run all customers websites in a Jailkit.
Now a customer asked to use WP-CLI for his Wordpress site.
In his Jail he doesn’t have access to the binaries he need including PHP.

Is this easy to fix or?

I’m tempted to answer that we don’t have support for WP-CLI in our environment but I don’t want to be a lazy asshole without researching some.

// Magnus

You’d put everything wp-cli needs into the jail using the jailkit tools. So, it’s reasonably easy to fix, as I don’t think wp-cli has a very long dependency list (well, it has a bunch of indirect deps, but if you use the jailkit tools to put things in the jail, it handles the library deps).

I think Ilia added some tools to Virtualmin Pro to make adding things to the jails easier, so you can probably just add the right PHP binary (make sure you get the version the domain is using for the WordPress site), and whatever else wp-cli needs.