Giving PHP the permission to make a git pull request
Posted
by Bernd
on Server Fault
See other posts from Server Fault
or by Bernd
Published on 2010-03-27T09:55:28Z
Indexed on
2010/03/27
10:03 UTC
Read the original article
Hit count: 397
Hello,
I would like to allow PHP to execute a Git pull command. But there are some problems with the user and permissions. How did you solve the problem?
PHP runs as user www-data. Therefore I've changed the .git directory owner/group to www-data (chown www-data:www-data -R .git
). As it is turned out later www-data has no SSH keys. Is it a good idea to give it one? If yes where to place? Or is it possible to allow it to use a specific key.
Best regards, Bernd
© Server Fault or respective owner