function exec in php run Box CLI
AnsweredI have use exec in PHP run Box CLI
I have install box cli on ubuntu: "npm install --global /cli "
Result Error: could not initialize cli home directory on ubuntu
Please help me!
-
Hi , when running PHP exec the Path and user permissions are often different than when accessing the shell directly. It's hard to debug from our end to be honest, I am sorry.
It might be easier for you to make API call directly using the JWT token. We have some documentation in PHP available here.
https://developer.box.com/guides/authentication/jwt/without-sdk/
Please sign in to leave a comment.
Comments
2 comments