"empty config" on output PHP exec

Hey all,

I'am using rclone 1.53. There's no problem when i run it in terminal but when i call rclone using PHP exec it's return "empty config". can someone help me thx.

hello and welcome to the forum,

what is your rclone command?
when you run from the terminal, what is the user name?
when you run php exec, what is the user name?

try to specify the location of the config file using

hi, i'am using "rclone config show", i already chown the rclone using root and specify --config in command too

what is returning "empty config", rclone or php?
can you post the exact error message?

when you posted, you should have been asked for some basic info.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

it's return on exec PHP function. no problem when i call it in terminal.

when using another command like copy, sync, etc there's no return value and giving print like this

array(0) { } int(1)

when using command like your e.g it's all running with no problem in terminal but when using exec PHP it's empty like in top. but in terminal it's fine. thanks

have you searched the forum, as there are posts about php.

you might try to post on a php forum.

thans a lot for your help

i already fix the problem, the problem is call rclone using exec PHP cannot run .conf file when it's inside directory /root so i create another rclone .conf in home directory

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