I have a Bash script that runs rsync to mirror files to other webservers.
The script runs over ssh with public key authentification.
This script is finished.
Now I need a PHP Script that runs this bash script.
So far the PHP Code goes like this:
<?php system("/home/user/[url removed, login to view]", $retval); ?>
The problem is, that the user www-data can't run the script because it has no access to the keys in .ssh.
To run the replication script you have to logged in as "rsync-user".
Please tell me how to enable the replication by just typing in the correct url to the php script on any webbrowser.