Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From your description in the comments it seems that the problem is that your <code>apache</code> user cannot write to the repository, which is clearly required when you use <code>git pull</code>. You have two courses of action:</p> <ol> <li>Setup up Apache to run the script as another user (e.g. using <a href="http://httpd.apache.org/docs/2.0/suexec.html" rel="nofollow noreferrer">suEXEC</a> either <a href="http://httpd.apache.org/docs/2.0/suexec.html#usage" rel="nofollow noreferrer">on a VirtualHost or via userdir</a>)</li> <li>Change the permissions on your repository so the <code>apache</code> user can write to it</li> </ol> <p>You should think carefully about the security implications of either choice, but the second option is probably easiest. If you don't already have such a group, you can create it with:</p> <pre><code>addgroup gitwriters </code></pre> <p>... and then add yourself and the Apache user to this group:</p> <pre><code>adduser [yourusername] gitwriters adduser apache gitwriters </code></pre> <p>Then you can follow the instructions in <a href="https://stackoverflow.com/questions/3242282/how-to-configure-an-existing-git-repo-to-be-shared-by-a-unix-group">another question</a> to change the permissions on the repository. To reiterate those with some slight variations:</p> <pre><code># Recursively, set the group ownership of every file and directory of your repository: chgrp -R gitwriters /path/to/your/repo # Recursively, make every file and directory of your repository readable and writable # by the group: chmod -R g+rw /path/to/your/repo # Recursively, set the setgid of every directory in the repository. The setgid bit # on directories means that files created in the directory will have the same group # ownership as the directory. find /path/to/your/repo -type d -print0 | xargs -0 chmod g+s </code></pre> <p>Then hopefully your <code>git pull</code> should work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload