Install PHP Composer
Install PHP Composer
Composer is PHP’s dependency manager. The Statusengine 3 worker and Statusengine UI are both installed with it.
ℹ️
Only Statusengine 3 needs this. The current Go worker
is a
single binary with no PHP and no Composer anywhere in the picture.
Installation
apt-get install php-cli
curl -o composer-setup.php https://getcomposer.org/installer
php composer-setup.php
cp composer.phar /usr/local/bin/composerUsage
You should now be able to run composer and get its help output:
root@ubuntu:~# composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 2.0.11 2021-02-24 14:57:23
Usage:
command [options] [arguments]
The warning about running as root is expected here: Statusengine 3 is installed
system-wide under /opt/statusengine or /usr/share, so the install step does
run as root.