apache Mercurial HTTP Error 500: Internal Server Error问题解决方法

I've been trying to setup mercurial for the last couple of
> days and made good progress. I'm able to clone and browse
> the repository, but pushing my changes back onto the server
> causes mercurial to throw an exception.
>
> Here's what happens when I try to push
>
> C:/temp/project>hg push
> https://user:password@www.domain.net/hg/project
>
> from the command line I get this
>
> pushing to https://www.domain.net/hg/project
> searching for changes
> abort: HTTP Error 500: Internal Server Error
>
> When I looked into the apache error log, I found that an
> exception is thrown:
>
> -------
> ..
> [error] Not trusting file /var/hg/project/.hg/hgrc from
> untrusted user root, group www-data

The SyntaxError reported at the end of the log is *perhaps* a side
effect of the first error (not trusting file).

You can try that:

Check that your Apache server runs as user www-data and group www-data
(this is the default) and change owner and group of all files and
directories under /var/hg/project to user www-data and group www-data:

$ cd /var/hg
$ chown -hR www-data /your repos
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值