Thanks for the suggestion, ame.
SCP is what I tried, originally, before giving up and trying to go with Samba. However, I had no idea that there is PHP syntax that is built-in for it. I, merely, tried using the "exec" command to execute what I'd, normally, type at a command line; while using SCP. I tried using sshpass, in order to provide the password.
The biggest reason my approach didn't work, seemed to boil down to permission issues. I could run the command fine, at the command line. However, PHP persistently failed. Apparently, it doesn't have privileges to execute the command. I wasn't able to get it to work, and I kept reading lots of posts about security issues, pertaining to giving PHP the necessary privileges.
Having said that, I just tried using the syntax that's shown in the link that you've provided, but haven't gotten it to work. I receive the general "HTTP Error 500" error message.
I may have to go back to looking into using SCP, with this new, built-in syntax, as an alternative to Samba.
Out of curiosity, have you gotten this method to work, or is it simply the approach you'd attempt?
Thanks, again, for your input.
SCP is what I tried, originally, before giving up and trying to go with Samba. However, I had no idea that there is PHP syntax that is built-in for it. I, merely, tried using the "exec" command to execute what I'd, normally, type at a command line; while using SCP. I tried using sshpass, in order to provide the password.
The biggest reason my approach didn't work, seemed to boil down to permission issues. I could run the command fine, at the command line. However, PHP persistently failed. Apparently, it doesn't have privileges to execute the command. I wasn't able to get it to work, and I kept reading lots of posts about security issues, pertaining to giving PHP the necessary privileges.
Having said that, I just tried using the syntax that's shown in the link that you've provided, but haven't gotten it to work. I receive the general "HTTP Error 500" error message.
I may have to go back to looking into using SCP, with this new, built-in syntax, as an alternative to Samba.
Out of curiosity, have you gotten this method to work, or is it simply the approach you'd attempt?
Thanks, again, for your input.
Statistics: Posted by evansste — Tue Jul 15, 2025 5:25 am