You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "M. Verkerk" <m....@erasmusmc.nl> on 2005/06/28 13:55:24 UTC

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

Dear all,

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

Thanks in advance!

Marijn

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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