Details
I am super new to linux and everything so the whole setup that i have is a collection of copied tutorials.
I have followed the instructions on setting up repository hosting
https://secure.phabricator.com/book/phabricator/article/diffusion_hosting/
And clearly failed. When I try to do clone of my repository i get
< HTTP/1.1 500 Error 1: sudo: a password is required < Content-Type: text/html; charset=UTF-8 < Date: Thu, 07 Apr 2016 08:08:18 GMT < Server: Apache/2.2.31 (Amazon) < X-Powered-By: PHP/7.0.4 < Content-Length: 42 < Connection: keep-alive < * Connection #1 to host phabricator.***.com left intact fatal: unable to access 'http://phabricator.*****.com/diffusion/1/****_web.git/': The requested URL returned error: 500
In my sudoers file I have included this. Phabricator is main user i run phabricator daemons with. I do not want to give it so much freedom, but most of the installation tutorials suggest doing so. Could you let me know what permissions I need to give it also?
The part I don't understand is how does phabricator know who www-user is. I know for vcs user I set it up in the config. But for www-user I didn't tell phabricator which user to use for http access. From what i understood its some system user.
phabricator ALL=(ALL) NOPASSWD: ALL vcsphab ALL=(phabricator) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack www-user ALL=(phabricator) SETENV: NOPASSWD: /usr/bin/git, /usr/libexec/git-core/git-http-backend, /usr/bin/git-upload-pack
The part I don't understand is how does phabricator know who www-user is. I know for vcs user I set it up in the config. But for www-user I didn't tell phabricator which user to use for http access. From what i understood that it is some system user. I dont know which one. Below is the list of all users my machine has. I added www-user myself.
root bin daemon adm lp sync shutdown halt mail uucp operator games gopher ftp nobody rpc ntp saslauth mailnull smmsp rpcuser nfsnobody sshd dbus ec2-user apache mysql phabricator vcsphab www-user
Answers
www-user is the user that the http server is running under. You haven't mentioned what distro / http server you are running. I am assuming that because you have an apache user that this is your http daemon. I would be tempted to try something a bit more out of the box if this is your first rodeo. Gogs?