Giving PHP the permission to make a git pull request
- by Bernd
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