httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: [users@httpd] call rsync from php script
Date Tue, 13 May 2008 10:10:05 GMT
Hi Jean-Christophe,
You need to source the ssh-key agent. I suggest you work with a tool
like keychain.
And please configure some sort of protection/authentication
around your


Von: Jean-Christophe Roux [] 
Gesendet: Dienstag, 13. Mai 2008 11:59
Betreff: [users@httpd] call rsync from php script


I have a bash script <>  that contains:
rsync -- delete -avz -e ssh ${files} root@64.XXX <mailto:root@64.XXX>
when I use that script ./ as root, it works like a charm as I
set up the private/public key properly.
When run from a php script through the apache webserver
exec(" <> ");
The rsync line is ignored. 
I understand that the php script is called under the apache user, when
the private/public key is for my root user. How can I set the the keys
so that the apache user can run fully the php script?

Thank you.

View raw message