How to setup Mercurial central repository on shared hosting

前端 未结 4 1048
孤街浪徒
孤街浪徒 2021-01-14 10:53

I am trying to setup a central repository with shared hosting. I read all the way through this tutorial https://www.mercurial-scm.org/wiki/PublishingRepositories to no avail

4条回答
  •  轮回少年
    2021-01-14 11:51

    This could also be a permission error.

    I just encountered a similar situation where I had created a repository in my usual place where apache picks it up via hgwebcgi. I could clone that repository locally (not going via webserver), but not from a remote client, so I knew it was not a hg error as such.

    Turned out the problem was that my repository was owned by the user I created it with, with no read/write access given to apache.

    Running

    chown -R apache:apache 
    

    did the trick. (I exclusive access these repositories via the web, so this seems ok, otherwise come up with a solution that will allow apache access without owning it)

提交回复
热议问题