Bug #14749 [NEW]: running via Apache - Permission Denied
| From: | czerwonka at arcticpenguin dot ca | Date: | Mon, 06 Oct 2008 03:37:48 +0000 |
| Subject: | Bug #14749 [NEW]: running via Apache - Permission Denied | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-6294@lists.php.net to get a copy of this message | ||
From: czerwonka at arcticpenguin dot ca
Operating system: Linux
Package version:
PHP version: 5.2.3
Package: Bug System
Bug Type: Bug
Bug description: running via Apache - Permission Denied
Description:
------------
I've got a PHP script being executed by Apache (www user) :
<?php
echo 'SVN Client is ' . svn_client_version();
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, "aczerwon");
?>
I'm getting an error on the second line (first on reports 1.4.0 correctly)
saying:
svn_auth_set_parameter(): svn error(s) occured\n13 (Permission denied)
Can't open file '/root/.subversion/servers': Permission denied
Alan Knowles asked me to log this bug.
reference / and looking at svn's source code.
http://svn.haxx.se/dev/archive-2005-09/1094.shtml
According to Alan, you need to add svn_config_ensure("dir");
err = svn_config_ensure(opt_state.config_dir, pool);
Reproduce code:
---------------
Nothing special. Simply install the svn extension and have Apache run a
script and you get this error.
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=14749&edit=1
--