PHP Dependencies Problem on Install

I’m doing a fresh install on Ubuntu 20.04. I following the install guide to the letter but when I get to
“Install PHP Dependencies”
su - librenms
./scripts/composer_wrapper.php install --no-dev
exit

I get the following:
root@librenms:/opt# su - librenms
librenms@librenms:~$ ./scripts/composer_wrapper.php install --no-dev
-bash: ./scripts/composer_wrapper.php: No such file or directory
librenms@librenms:~$ exit
logout

I finished out the install and tried installing it manually per instructions with the following command:

wget https://getcomposer.org/composer-stable.phar
mv composer-stable.phar /usr/bin/composer
chmod +x /usr/bin/composer

I’m at the end of the install now and I got nothing as far as WebUI, not even a Bad Gateway error. When I run ./validate.php I get the following.

librenms@librenms:/opt/librenms$ ./validate.php
PHP Fatal error: Uncaught Error: Call to undefined function c_echo() in /opt/librenms/validate.php:175
Stack trace:
#0 /opt/librenms/validate.php(64): print_fail()
#1 {main}
thrown in /opt/librenms/validate.php on line 175

Fatal error: Uncaught Error: Call to undefined function c_echo() in /opt/librenms/validate.php:175
Stack trace:
#0 /opt/librenms/validate.php(64): print_fail()
#1 {main}
thrown in /opt/librenms/validate.php on line 175

I’ve installed Libre several times before but it has been a year or so, not sure what I’m missing or if it’s the php dependencies that’s causing all my issues.

Thanks in advance for the help

I might have found the problem, I believe it was in the way I was submitting the commands. I will confirm and update.

I didn’t change directories before running the PHP Dependencies commands. Issue resolved.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.