Reply to Re: SVN over exec()

Your name:

Reply:


Posted by Brendan Gillatt on 11/28/07 15:58

-----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?op=get&search=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFHTZArkA9dCbrNdDMRAq3AAJ9zI7I3qeptYCxRITPu9AF36HOq7gCfUbaT
Xitq8OsM2uuGTwh08GD99XE=
=//mE
-----END PGP SIGNATURE-----

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация