ITPub博客

首页 > IT职业 > IT图书 > php 直接调用svn命令

php 直接调用svn命令

IT图书 作者:qianby 时间:2021-09-09 09:17:52 0 删除 编辑

程序如下php_svn.php

system("/usr/bin/svn co --username xx --password xx --no-auth-cache    http://test.domain.com/application/config/  application/config/");

?>



如果出现如下错误,提示

1、[15-Jan-2014 10:47:47] WARNING: [pool www] child 30635 said into stderr: "svn: Can't make directory 'application/config': Permission denied"


①表示当前php执行所在目录权限不足,可以授予777权限


2、认证错误,解决方法,添加--no-auth-cache

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: ""

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "can only be stored to disk unencrypted!  You are advised to configure"

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "your system so that Subversion can store passwords encrypted, if"

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "possible.  See the documentation for details."

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: ""

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "You can avoid future appearances of this warning by setting the value"

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "of the 'store-plaintext-passwords' option to either 'yes' or 'no' in"

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "'/.subversion/servers'."

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "-----------------------------------------------------------------------"

[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "Store password unencrypted (yes/no)? "


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3549/viewspace-2801863/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Java进阶容器学习
请登录后发表评论 登录
全部评论

注册时间:2009-08-27

  • 博文量
    75
  • 访问量
    21661