SVN over exec()

This is a discussion on SVN over exec() within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi I have the following problem: I try to run a file which is essentially <? echo exec("svn ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-26-2007
Adrian Nievergelt
 
Posts: n/a
Default SVN over exec()

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
Reply With Quote
  #2 (permalink)  
Old 11-26-2007
Michael Fesser
 
Posts: n/a
Default Re: SVN over exec()

..oO(Adrian Nievergelt)

>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 "no output" mean no text in the browser or an completely empty
result? Did you check the HTML source code?

>Does anyone have any experience on what to do in such a case, or even
>has had the same problem I have?


I would start with using <?php instead of <?. Then make sure the
error_reporting directive is set to E_ALL|E_STRICT in your php.ini.

Micha
Reply With Quote
  #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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0