Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Problem php +apache +svn  (Read 4423 times)

0 Members and 1 Guest are viewing this topic.

puneetbrar

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    Problem php +apache +svn
    « on: July 16, 2011, 05:13:36 AM »
    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 me

    reddevilggg



      Expert

      Thanked: 69
    • Experience: Beginner
    • OS: Windows 7
    Re: Problem php +apache +svn
    « Reply #1 on: July 16, 2011, 06:07:03 AM »

    You've posted the same question twice, in the same section.  Is just creates confusion when people attempt to answer. One post is enough.

    Can a mod lock this one.
    11 cheers for binary !