Changes between Version 27 and Version 28 of NSM2021/Agenda/Librenms


Ignore:
Timestamp:
May 9, 2021, 9:33:15 PM (4 years ago)
Author:
tuwan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/Librenms

    v27 v28  
    110110}}}
    111111
     112== Configure PHP-FPM ==
     113
     114`cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/7.4/fpm/pool.d/librenms.conf`
     115
     116`vi /etc/php/7.4/fpm/pool.d/librenms.conf`
     117
     118Change [www] to [librenms]
     119
     120`[librenms]`
     121
     122Change user and group to "librenms":
     123
     124`user = librenms`
     125
     126`group = librenms`
     127
     128Change listen to a unique name:
     129
     130`listen = /run/php-fpm-librenms.sock`
    112131
    113132
     133== Web server configuration ==
    114134
     135`vi /etc/nginx/conf.d/librenms.conf`
     136
     137edit server_name as required:
     138{{{#!bash
     139server {
     140 listen      80;
     141 server_name librenms.example.com;
     142 root        /opt/librenms/html;
     143 index       index.php;
     144
     145 charset utf-8;
     146 gzip on;
     147 gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
     148 location / {
     149  try_files $uri $uri/ /index.php?$query_string;
     150 }
     151 location ~ [^/]\.php(/|$) {
     152  fastcgi_pass unix:/run/php-fpm-librenms.sock;
     153  fastcgi_split_path_info ^(.+\.php)(/.+)$;
     154  include fastcgi.conf;
     155 }
     156 location ~ /\.(?!well-known).* {
     157  deny all;
     158 }
     159}
     160}}}