[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnadmin create from php doesn't work on RH linux machine

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-06-28 18:44:36 CEST

On 28.06.2005, at 15:55, M. Verkerk wrote:

> I have this php script which should create a new repository. From
> the script I execute the following, which doesn't work on this
> particular machine (redhat enterprise 4):
> exec("svnadmin create /reposloc/repository");
> But, dumping DOES work:
> exec("svnadmin dump /reposloc/repository > /reposloc/output.dump");
> I know this could be a php question, but anyway. I've made sure that:
> - The home directory of apache is writable to the apache user
> (maybe for the .subversion directory)
> - The repository location is writable to the apache user and the
> empty directory exists
> - php is not running in safe mode
> - the newest stable versions of php, apache and subversion are
> installed


exec('/opt/local/bin/svnadmin create /tmp/testrepository 2>&1', $out,
echo "return value: $err<br />\n";
echo "output:<br />" . implode("<br />\n", $out);


Works for me. (Mac OS X 10.4.1) Do you get any error output? My
version above outputs STDERR to the page. Or, you could use your
version and look in the Apache or PHP error log.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 28 18:57:57 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.