You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to execute file upload vial local (protected) PHP script, using exec() function..
I know I should not have permission on /root/.gdrive/ for PHP user (which is nginx).
Failed getting oauth client: Service account filename "/root/.gdrive/me.json" not found
I tried to create soft link for /root/.gdrive/ in my nginx (default home folder) /var/lib/nginx but I still get same error message
=Update=
I kinda solve it (I don't know if it is a safe solution or not) , bur I copied all my credential file to /var/lib/nginx/.gdrive and PHP now accepting it .
The text was updated successfully, but these errors were encountered:
I'm trying to execute file upload vial local (protected) PHP script, using exec() function..
I know I should not have permission on
/root/.gdrive/
for PHP user (which is nginx).Failed getting oauth client: Service account filename "/root/.gdrive/me.json" not found
and this is shell script I'm exciting
/usr/local/sbin/gdrive -c /root/.gdrive/ --service-account "me.json" upload $1 --share
I tried to create soft link for /root/.gdrive/ in my nginx (default home folder)
/var/lib/nginx
but I still get same error message=Update=
I kinda solve it (I don't know if it is a safe solution or not) , bur I copied all my credential file to
/var/lib/nginx/.gdrive
and PHP now accepting it .The text was updated successfully, but these errors were encountered: