Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Exec SCP does not copy the file to the remote server

Tags:

php

scp

exec

I need a file from a server to another server (I own both) using PHP. I have the following script:

<?php

exec('scp /home/pat/file1.tst [email protected]:/home/pat/file1.txt');

I get this error:

Disallowed system call: SYS_pipe

What is that error? and how can I fix it?

like image 670
Pat R Ellery Avatar asked Oct 19 '11 19:10

Pat R Ellery


1 Answers

PHP environment does not allow exec on your server.

like image 164
TigOldBitties Avatar answered Nov 03 '22 03:11

TigOldBitties