1.

Solve : Svn + php Web page +apache?

Answer»

Hi
I am a linux newbie
and got into a major problem of setting up svn with php and apache
I have the following softwares in my systems

1. Fedora 13
2. Php version 5.2.17
3. Apache Version 2.2
4. svn client version 1.6.16 i can see them in phpinfo.php
5. svn extension version 1.0.1
6. https installed on apache working fine

Php and apache are working fine there are no issues in that as a project is working

Just Now i have installed svn version 1.6 but when i run a command svn info https://www.someurl.com from command line it works fine i GET a message of the revision and its working fine but when the same thing i run from php file or php webpage it gives me the following error

Username: svn: OPTIONS of 'https://someurl/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)Array
(

  • => Authentication realm: Subversion LOGIN
  • [1] => Username: svn: OPTIONS of '
https://someurl.net/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)
)
1
The php CODE is here
$cmd = exec("svn info https://someurl.net/svn/someurl/something/trunk-new |grep Revision: |cut -c11- 2>&1", $output, $status);
echo " ";
print_r($value);
print_r($output);
print_r($status);
echo "";
?>

i have followed the following
http://vengatctech.wordpress.com/200...svn-on-fedora/
and also googled enough but its not working in php web page

Can somebody help meGo to the Fedora forums and POST this question there. One thing that will be suggested is upgrading your system to the most recent release.
You may also want to join a mailing list dealing with subversion and the use thereof.


Discussion

No Comment Found