Menu

Unable to Change User Privileges

Help
Mike Tseng
2010-11-25
2013-05-01
  • Mike Tseng

    Mike Tseng - 2010-11-25

    when i create a new Repository ,no directory will be created. but there will be a Repository data in the mysql.

    when i change user privileges and choose the repsository  the following error appear…help me ! thanks **

    (cmd: "C:\WINDOWS\system32\cmd.exe /C D:\Program Files\Subversion\bin" list -config-dir F:\Repository\demo\conf -non-interactive "file:///F:/Repository/demo/test2")
    Command used: "C:\WINDOWS\system32\cmd.exe /C D:\Program Files\Subversion\bin" list -config-dir F:\Repository\demo\conf -non-interactive "file:///F:/Repository/dem**o/test2"

     
  • Valerio Pulese

    Valerio Pulese - 2010-11-25

    Did you set the correct paths in config.php for Windows?
    $svn_cmd            = "c:\\PROGRA~1\\Subversion\\bin\\svn";
    $svnadmin_cmd       = "c:\\PROGRA~1\\Subversion\\bin\\svnadmin";

     
  • Mike Tseng

    Mike Tseng - 2010-11-26

    yeah , the path is correct ,

    i change to use the version 1.04 ,

    i can create a Repository  now ,

    but cannot change user privileges either.

    the same error info.

    my config.php is following ……………..

    $htpassword_cmd     = "D:\\Progra~1\\Apache~1\\Apache2.2\\bin\\htpasswd";
    $svn_cmd            = "D:\\PROGRA~1\\Subversion\\bin\\svn";
    $svnadmin_cmd       = "D:\\PROGRA~1\\Subversion\\bin\\svnadmin";

    //Subversion locations
    $svn_repos_loc                         =         "F:\\Repository\\repos";
    $svn_passwd_file                 =         "F:\\Repository\\conf\\passwd";
    $svn_access_file                 =         "F:\\Repository\\conf\\authz";

    $svn_trash_loc                        =        "";

    $svnserve_user_file = "F:\\Repository\\conf\\passwd";

    //SMTP Server for outgoing mail
    $smtp_server                         =         "smtp.mailserver.net";

    $dsn = "mysql://root:123456@localhost/svnmanager";

    ……………………  help me plz. thank u!!

     
  • Valerio Pulese

    Valerio Pulese - 2010-11-26

    I have little experience running Apache on windows but I would check for
    writing permissions by user running httpd service (apache) on following file/dir:

    F:\\Repository\\conf\          (to create file)
    F:\\Repository\\conf\\passwd (to update user:password)
    F:\\Repository\\conf\\authz (to update user privileges on repository)
    F:\\Repository\\repos       (to create repository)

    Verify  in mysql database that privileges are created in table "userprivileges".
    Everytime you change privileges through Svnmanager  a new F:\\Repository\\conf\\authz
    is created from scratch with DB informations ( ./svnmanager/library/class.accessfile.php  createFromDatabase()
    Anything in Apache error log ?

     
  • Mike Tseng

    Mike Tseng - 2010-11-27

    error info is" the filename, directory name or volume label syntax is incorrect ",

    the command  : "C:\WINDOWS\system32\cmd.exe /C D:\Program Files\Subversion\bin" list -config-dir F:\Repository\demo\conf -non-interactive "file:///F:/Repository/demo/test2"

    something wrong with my config file ? 

     
  • Valerio Pulese

    Valerio Pulese - 2010-11-27

    Theres something wrong  when running php system() or passthrough() function
    That command line should be:
    "C:\WINDOWS\system32\cmd.exe /C D:\Program Files\Subversion\bin\svn.exe" list -config-dir F:\Repository\demo\conf -non-interactive "file:///F:/Repository/demo/test2"
    or simply
    "D:\Program Files\Subversion\bin\svn.exe" list -config-dir F:\Repository\demo\conf -non-interactive "file:///F:/Repository/demo/test2"
    Are you running PHP in  CGI interpreter or PHP Apache module ?

     
  • Mike Tseng

    Mike Tseng - 2010-11-28

    thanks for your reply!!

    but sorry i dont know what is the  PHP Apache module,

    how to config the php apache module???

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.