Could not open input file: /opt/librenms/composer.phar

@TheGreatDoc sudo did not work. but I got around this with removing /opt/librenms dir and did a fresh git clone. after this with double checking the permissions I was able to run composer_wrapper.php successfully.

now I got another issue running the http://localhost/install.php the page loads a raw php txt and not a the install page.
vhost configured properly and dir set to /opt/librenms/html/
owner also set to librenms:librenms on /opt/librenms/html/

anything I missed?

<?php

use LibreNMS\Authentication\LegacyAuth;
use LibreNMS\Config;

session_start();
$librenms_dir = realpath(DIR . ‘/…’);

if (empty($_POST) && !empty($_SESSION) && !isset($_REQUEST[‘stage’])) {
$_POST = $_SESSION;
} elseif (!file_exists("{$librenms_dir}/config.php")) {
$allowed_vars = array(‘stage’,‘build-ok’,‘dbhost’,‘dbuser’,‘dbpass’,‘dbname’,‘dbport’,‘dbsocket’,‘add_user’,‘add_pass’,‘add_email’);
foreach ($allowed_vars as $allowed) {
if (isset($_POST[$allowed])) {
$_SESSION[$allowed] = $_POST[$allowed];
}
}
}

$stage = isset($_POST[‘stage’]) ? $_POST[‘stage’] : 0;

// Before we do anything, if we see config.php, redirect back to the homepage.
if (file_exists("{$librenms_dir}/config.php") && $stage != 6) {
unset($_SESSION[‘stage’]);
header(“Location: /”);
exit;
}