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
<?php
exec('/opt/local/bin/svnadmin create /tmp/testrepository 2>&1', $out,
$err);
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