Changes between Version 27 and Version 28 of NSM2021/Agenda/Librenms
- Timestamp:
- May 9, 2021, 9:33:15 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/Librenms
v27 v28 110 110 }}} 111 111 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 118 Change [www] to [librenms] 119 120 `[librenms]` 121 122 Change user and group to "librenms": 123 124 `user = librenms` 125 126 `group = librenms` 127 128 Change listen to a unique name: 129 130 `listen = /run/php-fpm-librenms.sock` 112 131 113 132 133 == Web server configuration == 114 134 135 `vi /etc/nginx/conf.d/librenms.conf` 136 137 edit server_name as required: 138 {{{#!bash 139 server { 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 }}}