Thread: SVN over exec()
View Single Post

  #3 (permalink)  
Old 11-28-2007
Brendan Gillatt
 
Posts: n/a
Default Re: SVN over exec()

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adrian Nievergelt wrote:
> Hi
>
> I have the following problem:
>
> I try to run a file which is essentially
>
> <?
> echo exec("svn info /somepath");
> ?>
>
> or alternatively
>
> <?
> echo exec("svn co --username=bla --password=blabla svn://someurl");
> ?>
>
> on the Webserver.
>
> The problem however is that that doesn't seem to have any effect. The
> page loads way too fast, shows no output whatsoever and the error_log's
> from apache are empty.
>
> Does anyone have any experience on what to do in such a case, or even
> has had the same problem I have?
>
> Since I am quite without any lead help would be greatly appreciated.
>
> Greetz
> Adrian


Check if the apache, www or nobody accounts have execute permissions on
the svn binary. Am I correct in assuming that you can run the program
from the shell?

Also, check if SafeMode is on. I can't recall the details from memory but
I don't think it allows executables to be run from PHP except in specif
directories.

- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFHTZArkA9dCbrNdDMRAq3AAJ9zI7I3qeptYCxRITPu9A F36HOq7gCfUbaT
Xitq8OsM2uuGTwh08GD99XE=
=//mE
-----END PGP SIGNATURE-----
Reply With Quote