I've got a command I've created that makes an info call to an SVN repository stored on hosted SVN service. Here's an example:
exec('svn info https://myrepo.svn.beanstalkapp.com/project/name/folder 2>&1', $output, $returnStatus);
if ($returnStatus)
{
print_r($output);
}
The response I get is:
Array
(
[0] => Authentication realm: SVN
[1] => Password for 'apache': Authentication realm: SVN
[2] => Username: svn: PROPFIND request failed on '/project/name/folder'
[3] => svn: PROPFIND of '/project/name/folder': authorization failed (https://myrepo.svn.beanstalkapp.com)
)
I'm running the script on a box that has Plesk on it. It runs final locally so I suspect it's a configuration issue (which I can't seem to find any answers for online).
I don't know how to make the apache user be able to access the authentication realm - I believes that's the issue at hand.
svn --password ... --username ...for running the request.--no-auth-cache --non-interactiveoptions for testing? That might be relevant in your case. Otherwise try to set $HOME and $USER to the account you successfully executedsvn infowith. Or as last resort configuresudoto perform any interaction under that account - instead of theapacheuser (might run in a sandbox/jail/selinux/etc?).