After trying to made vhost lost webface

====================================
Component Version
LibreNMS 21.2.0-53-g92bf7d5ef
DB Schema 2021_02_21_203415_location_add_fixed_coordinates_flag (200)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8

====================================

[OK] Composer Version: 2.0.11
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
html/.htaccess
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore

.env

DB_HOST=localhost
DB_DATABASE=librenms
DB_USERNAME=librenms
DB_PASSWORD=********

#APP_URL=/
NODE_ID=5dd7c817b3298
DB_PORT=3306
LIBRENMS_USER=librenms

config.php

### Database config
$config['db_host'] = 'localhost';
$config['db_port'] = '3306';
$config['db_user'] = 'librenms';
$config['db_pass'] = '********* ';
$config['db_name'] = 'librenms';
$config['db_socket'] = '';

// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
$config['user'] = 'librenms';

### Locations - it is recommended to keep the default
#$config['install_dir']  = "/opt/librenms";

### This should *only* be set if you want to *force* a particular hostname/port
### It will prevent the web interface being usable form any other hostname
#$config['base_url']        = "http://librenms.company.com";
$config['base_url'] = '/';
### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
### and that your web server has permission to talk to rrdcached.
#$config['rrdcached']    = "unix:/var/run/rrdcached.sock";

librenms.conf

<VirtualHost *:80>
 DocumentRoot /opt/librenms/html/
 ServerName  librenms
 Alias /librenms /opt/librenms/html
 AllowEncodedSlashes NoDecode
<Directory "/opt/librenms/html/">
  Require all granted
  AllowOverride All
 Options FollowSymLinks MultiViews
</Directory>

# Enable http authorization headers
#  <IfModule setenvif_module>
#    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
#  </IfModule>

#  <FilesMatch ".+\.php$">
#    SetHandler "proxy:unix:/run/php-fpm-librenms.sock|fcgi://localhost"
#  </FilesMatch>
</VirtualHost>

after my changing i loose access to webface,and now i need help to repair web.
Trying to access at ip/librenms return 404 error

Made some more test,adding symlink to /opt/librenms/html in /var/run/html/librenms,
change librenms.conf for apache and now i have access after i put ip/librenms/index.php in browser,
but only login and main page,no graph,dashboard etc.
I think i’m broke some path setting…HELP ME PLEASE)))))

After changing settings like in starttopic and unlinking access to main page lost and return 404

Final…
I also cant setting librenms as vhost. At my server i have phpipam and cacti.I set *:81 for phpipam and cacti,
disable all change in .env config.php and .htaccess for librenms and finally i get back webface with all graphs etc.
When i try to set *:80 in cacti or phpipam for apache settings i lose librenms and any setting for librenms vhost like changing in .env .htaccess and config.php(like here https://docs.librenms.org/Extensions/Sub-Directory/ doesn’t help to phpipam and cacti using 80 port.
So i’m still need help to setting librenms as vhost wich will work with other system on 80 port.
Now at 80 port work only librenms, if i change 81 to 80 port for cacti and phpipam(in apache conf files) i broke librenms.
Help,please

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