Page MenuHomePhabricator

ssh setup problem
Closed, InvalidPublic

Asked by cos on May 15 2016, 3:14 AM.

Details

Hi,
I'm trying to set up diffusion (bitnami aws image) for ssh access but the PATH is not being set correctly for the git user - see below. I've verified that the ssh auth works and that sudoers is configured correctly, but I've yet to resort to reading the code to find where /opt/bitnami/apps/phabricator/htdocs/bin/ssh-exec is called and how. sudo -l for git shows the correct PATH etc.

Does anyone have any ideas? Thanks!

ssh -T -p 2222 git@phabricator.grailbio.com
Environment:

USER=git
LOGNAME=git
HOME=/home/git
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
MAIL=/var/mail/git
SHELL=/bin/bash
SSH_CLIENT=173.164.246.245 22796 2222
SSH_CONNECTION=173.164.246.245 22796 172.31.32.191 2222

/usr/bin/env: php: No such file or directory

Answers

chad
Updated 3,115 Days Ago

The upstream isn't responsible for the Bitnami package, you should contact them for support. The only officially supported way to install and update Phabricator is via our documentation: https://secure.phabricator.com/book/phabricator/article/installation_guide/

cos
Updated 3,114 Days Ago

turns out that you just need to softlink php into the default system path since there doesn't appear to be any other way of manipulating PATH from the phabricator config:

sudo ln -s /opt/bitnami/php/bin/php /usr/bin/php

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.