@@ -28,19 +28,9 @@ Connect to the server command line and follow the instructions below.
2828 === "NGINX"
2929 ```
3030 apt install software-properties-common
31- LC_ALL=C.UTF-8 add-apt-repository ppa: ondrej /php
31+ LC_ALL=C.UTF-8 add-apt-repository ppa: ondrej /php -y
3232 apt update
33- apt install acl curl fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php-cli php-curl php-fpm php-gd php-gmp php-json php-mbstring php-mysql php-snmp php-xml php-zip rrdtool snmp snmpd unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-psutil python3-systemd python3-pip whois traceroute
34- ```
35-
36- === "Ubuntu 20.04"
37- === "NGINX"
38- ```
39- apt install software-properties-common
40- add-apt-repository universe
41- LC_ALL=C.UTF-8 add-apt-repository ppa: ondrej /php
42- apt update
43- apt install acl curl fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php-cli php-curl php-fpm php-gd php-gmp php-json php-mbstring php-mysql php-snmp php-xml php-zip rrdtool snmp snmpd unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-systemd python3-pip whois traceroute
33+ apt install acl curl fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php8.3-cli php8.3-curl php8.3-fpm php8.3-gd php8.3-gmp php8.3-mbstring php8.3-mysql php8.3-snmp php8.3-xml php8.3-zip rrdtool snmp snmpd unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-psutil python3-systemd python3-pip whois traceroute
4434 ```
4535
4636 === "Apache"
@@ -142,12 +132,6 @@ Ensure date.timezone is set in php.ini to your preferred time zone.
142132 vi /etc/php/8.3/cli/php.ini
143133 ```
144134
145- === "Ubuntu 20.04"
146- ```bash
147- vi /etc/php/8.3/fpm/php.ini
148- vi /etc/php/8.3/cli/php.ini
149- ```
150-
151135=== "CentOS 8"
152136 ```
153137 vi /etc/php.ini
@@ -184,11 +168,6 @@ timedatectl set-timezone Etc/UTC
184168 vi /etc/mysql/mariadb.conf.d/50-server.cnf
185169 ```
186170
187- === "Ubuntu 20.04"
188- ```
189- vi /etc/mysql/mariadb.conf.d/50-server.cnf
190- ```
191-
192171=== "CentOS 8"
193172 ```
194173 vi /etc/my.cnf.d/mariadb-server.cnf
@@ -246,12 +225,6 @@ exit
246225 vi /etc/php/8.3/fpm/pool.d/librenms.conf
247226 ```
248227
249- === "Ubuntu 20.04"
250- ```bash
251- cp /etc/php/8.3/fpm/pool.d/www.conf /etc/php/8.3/fpm/pool.d/librenms.conf
252- vi /etc/php/8.3/fpm/pool.d/librenms.conf
253- ```
254-
255228=== "CentOS 8"
256229 ```bash
257230 cp /etc/php-fpm.d/www.conf /etc/php-fpm.d/librenms.conf
@@ -367,82 +340,6 @@ Feel free to tune the performance settings in librenms.conf to meet your needs.
367340 systemctl restart php8.3-fpm
368341 ```
369342
370- === "Ubuntu 20.04"
371- === "NGINX"
372- ```bash
373- vi /etc/nginx/conf.d/librenms.conf
374- ```
375-
376- Add the following config, edit `server_name` as required:
377-
378- ```nginx
379- server {
380- listen 80;
381- server_name librenms.example.com;
382- root /opt/librenms/html;
383- index index.php;
384-
385- charset utf-8;
386- gzip on;
387- 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;
388- location / {
389- try_files $uri $uri/ /index.php?$query_string;
390- }
391- location ~ [^/]\.php(/|$) {
392- fastcgi_pass unix:/run/php-fpm-librenms.sock;
393- fastcgi_split_path_info ^(.+\.php)(/.+)$;
394- include fastcgi.conf;
395- }
396- location ~ /\.(?!well-known).* {
397- deny all;
398- }
399- }
400- ```
401-
402- ```bash
403- rm /etc/nginx/sites-enabled/default
404- systemctl restart nginx
405- systemctl restart php8.3-fpm
406- ```
407-
408- === "Apache"
409- ```bash
410- vi /etc/apache2/sites-available/librenms.conf
411- ```
412-
413- Add the following config, edit `ServerName` as required:
414-
415- ```apache
416- <VirtualHost *:80>
417- DocumentRoot /opt/librenms/html/
418- ServerName librenms.example.com
419-
420- AllowEncodedSlashes NoDecode
421- <Directory "/opt/librenms/html/">
422- Require all granted
423- AllowOverride All
424- Options FollowSymLinks MultiViews
425- </Directory>
426-
427- # Enable http authorization headers
428- <IfModule setenvif_module>
429- SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
430- </IfModule>
431-
432- <FilesMatch ".+\.php$">
433- SetHandler "proxy:unix:/run/php-fpm-librenms.sock|fcgi://localhost"
434- </FilesMatch>
435- </VirtualHost>
436- ```
437-
438- ```bash
439- a2dissite 000-default
440- a2enmod proxy_fcgi setenvif rewrite
441- a2ensite librenms.conf
442- systemctl restart apache2
443- systemctl restart php8.3-fpm
444- ```
445-
446343=== "CentOS 8"
447344 === "NGINX"
448345 ```
@@ -609,9 +506,6 @@ Feel free to tune the performance settings in librenms.conf to meet your needs.
609506=== "Ubuntu 22.04"
610507 SELinux not enabled by default
611508
612- === "Ubuntu 20.04"
613- SELinux not enabled by default
614-
615509=== "CentOS 8"
616510 Install the policy tool for SELinux:
617511
@@ -679,9 +573,6 @@ Feel free to tune the performance settings in librenms.conf to meet your needs.
679573=== "Ubuntu 22.04"
680574 Firewall not enabled by default
681575
682- === "Ubuntu 20.04"
683- Firewall not enabled by default
684-
685576=== "CentOS 8"
686577
687578 ```
0 commit comments