looks like you are running PHP as system user.
perhaps you did testing as a standard user?
need to specify the location of the rclone config file by adding --config=/path/to/rclone.conf
or move the config file to the correct location inside system user profile
you can find the config file using rclone config file
or search your file system for rclone.conf
Used config location is derived from user (whoami tells you which one it is) running rclone.
When you run it from cmd as user friends rclone uses:
But when you run it from PHP script it is executed as user system and rclone uses:
But nothing is there....
There are two options to fix it as @asdffdsa explained:
Put rclone config in C:\windows\system32\config\systemprofile\AppData\Roaming\rclone
Use always Friends' user config. You can achieve it by adding --config flag to your PHP rclone command - it tells rclone which config file to use explicitly:
each windows user has it own user profile.
for Friends = C:\Users\Friends
for system = C:\WINDOWS\system32\config\systemprofile
the rclone.conf file is stored in the same location, relative to the root of the user profile. %APPDATA%/rclone/rclone.conf
best easy solution, have one config file shared by both users.
so for the php command, hardcode the location using --config=C:\Users\Friends\AppData\Roaming\rclone\rclone.conf