Updated Librenms VM, now cant access WebUI

I am a novice here but had a wroking install on the 9th May we are using Centos7. I would suggest following an automatic update of LibreNMS over night the following day we get the error when trying to access the webui. I am not able to install the suggested ./scripts/composer_wrapper.php install --no-dev

I have tried a few of the fixes mentioned above but get the similar error when I execute.

-bash: php: command not found

If I try php -v i also get the same error. Pretty much any command I try to run that relates to php returns the above error.

Any ideas?

You’re not saying which directory you’re running this from or which user…

Should be /opt/librenms and run as the librenms user.

In Debian

su - librenms
cd /opt/librenms
./scripts/composer_wrapper.php install --no-dev

The fact that it’s apparently not finding your php is troubling though… suggests either php isn’t installed or isn’t on the path for that particular user/shell.

Sorry, the command is run form the /opt/librenms directory

Tried the suggestion and still no joy.

How can I check php is in the correct path or is installed?

This is my current error when running ./scripts/composer_wrapper.php install --no-dev

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

does php -v give output?

output is “-bash: php: command not found”

A post was split to a new topic: Composer-wrapper.php install --no-dev giving error

2 posts were split to a new topic: Unknown character set utf8mb4

A post was merged into an existing topic: Unknown character set utf8mb4

what steps you do to make your Librenms WebUI up?

Hi,
Please, check the answer by the user “ueli_siegrist” in the top of this page.
I followed the instructions step by step and worked!
Regards.