cweiske / phorkie

Self-hosted pastebin software written in PHP. Pastes are editable, forkable, may have multiple files and are stored in git repositories.
https://cweiske.de/phorkie.htm
GNU Affero General Public License v3.0
216 stars 23 forks source link

Git binary error #33

Closed Liandriz closed 6 years ago

Liandriz commented 6 years ago

Hi, got this error on list page : "Guessing path to git binary is failed. You must specify path to git binary yourself.", any hint about it please? Git is installed, available in path, and can't get where in the phorkie config modify it?

Thanks for help.

cweiske commented 6 years ago

It's the PEAR package VersionControl_Git that throws this error. It uses pear-core-minimal's System.php which method to find git.

The question is if your web server makes the PATH variable available to PHP or not. Create a file called phpinfo.php with this content:

<?php
phpinfo();

Load it in your browser, and look for the list of environment variables. Is the PATH in there? If yes, does it contain the directory that git is in?

If you answered one of the questions with "no", open data/config.php and add (and adjust):

putenv("PATH=/usr/bin");

Does that help?

Liandriz commented 6 years ago

Thanks, PHP-FPM didn't get the PATH, and manually adding it to config.php works.
Another thing, will you add some simple login, or is OpenID mandatory?

cweiske commented 6 years ago

I might add IndieAuth one day, but there will be no own user management.

Liandriz commented 6 years ago

Thanks will wait for it!