Re: git install help
Simon B <[email protected]> Fri, 27 Dec 2019 16:14:45 +0100
| Newsgroups | gmane.comp.horde.user |
|---|---|
| Message-ID | <CAOmHMuGZ8YnfO6C5Kz++7s9qi4MYsv_hWSxYM6Fe6i8UwRjt0Q@mail.gmail.com> |
On Fri, 27 Dec 2019 at 13:12, Arjen de Korte <[email protected]> wrote: > > Citeren Simon B <[email protected]>: > > > Hi > > > > It's been nearly 2 years, since the git repository was split, and I am > > finally getting to trying to update my configuration... > > > > Following these instructions... > > > > https://github.com/horde/git-tools > > > > I did this: > > cp config/conf.php.dist config/conf.php > > > > I did this: > > 10 // Target directory for git checkouts. > > 11 $conf['git_base'] = '/my/current/5.2/git/clone/'; > > 12 > > 13 // Target directory for installation, i.e. the webroot . > > 14 $conf['web_base'] = '/my/current/git/webroot'; > > 15 > > 16 // Group name to use for the static directory. Should be the web > > server's > > 17 // group. > > 18 $conf['static_group'] = 'www-data'; > > > > I tried to do this: > > horde-git-tools --help > > > > but I got this: > > root@mail:/ /my/current/5.2/git/clone/horde-git-tools# bin/horde-git-tools > > --help > > You need to run "composer install" first. > > For more information on composer see https://getcomposer.org/. > > > > So, then I did this: > > php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" > > php -r "if (hash_file('sha384', 'composer-setup.php') === > > 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') > > { echo 'Installer verified'; } else { echo 'Installer corrupt'; > > unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php > > -r "unlink('composer-setup.php');" > > > > But I still get this: > > root@mail:/ /my/current/5.2/git/clone/horde-git-tools# bin/horde-git-tools > > --help > > You need to run "composer install" first. > > For more information on composer see https://getcomposer.org/. > > > > Is there a more step-by-step tutorial? > > If you need a step-by-step tutorial, I'd recommend to stick with the > versions from the pear.horde.org repository. > > I have one of those - as you answered in the other thread. And I don't intend to decommission it - but there are reasons it is not working for me. I actually managed to make some progress - for the archives, I had to... add some directories and chown them to the webserver user (chown www-data:www-data /var/www/.composer/cache/) run the command as: "php composer.phar install" instead of just "composer.phar install" using the www-data user upgrade PHP to > 5.5.0 However, now I have this error... $ php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Package operations: 66 installs, 0 updates, 0 removals [RuntimeException] /my/current/5.2/git/clone/horde-git-tools/vendor does not exist and could not be created. Apparently, this is because www-data needs rw access to horde-git-tools/ - so... chmod -R 774 /usr/share/git-horde5/horde-git-tools/ at least for now... That directory is filling up with 66 packages, but what the next steps are, I have no idea. Overall, I think more people using the git clone is better for the project, because it gives the developers more information and better support. The previous way of cloning the git repository - AND updating it! - was relatively simple. The added complexity seems to be caused by assumed competence in other tools (composer) - which can be avoided by better documentation, rather any other cause. Regards Simon -- Horde mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]