Some fail cant fix

This is my ./validate.php
i set two php.ini from
nano /etc/php/8.1/fpm/php.ini
nano /etc/php/8.1/cli/php.ini
but it still show fail

and another command cant fix
Please give me some advice


Component Version
LibreNMS 23.4.0 (2023-05-12T02:41:09+00:00)
DB Schema 2023_04_12_174529_modify_ports_table (250)
PHP 8.1.2-1ubuntu2.11
Python 3.10.6
Database MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool 1.7.2
SNMP 5.9.1

[OK] Composer Version: 2.5.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[FAIL] You have no timezone set for php.
PHP: Runtime Configuration - Manual
[FAIL] No active polling method detected
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
[FAIL] Scheduler is not running
cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
systemctl enable librenms-scheduler.timer
systemctl start librenms-scheduler.timer
[WARN] Global lnms shortcut not installed. lnms command must be run with full path
sudo ln -s /opt/librenms/lnms /usr/local/bin/lnms
[WARN] Bash completion not installed. lnms command tab completion unavailable.
sudo cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
warning: Not a git repository. Use --no-index to compare two paths outside a working tree
usage: git diff --no-index []

Diff output format options
-p, --patch generate patch
-s, --no-patch suppress diff output
-u generate patch
-U, --unified[=] generate diffs with lines context
-W, --function-context
generate diffs with lines context
–raw generate the diff in raw format
–patch-with-raw synonym for ‘-p --raw’
–patch-with-stat synonym for ‘-p --stat’
–numstat machine friendly --stat
–shortstat output only the last line of --stat
-X, --dirstat[=<param1,param2>…]
output the distribution of relative amount of changes for each sub-directory
–cumulative synonym for --dirstat=cumulative
synonym for --dirstat=files,param1,param2…
–check warn if changes introduce conflict markers or whitespace errors
–summary condensed summary such as creations, renames and mode changes
–name-only show only names of changed files
–name-status show only names and status of changed files
generate diffstat
–stat-width generate diffstat with a given width
generate diffstat with a given name width
generate diffstat with a given graph width
–stat-count generate diffstat with limited lines
–compact-summary generate compact summary in diffstat
–binary output a binary diff that can be applied
–full-index show full pre- and post-image object names on the “index” lines
–color[=] show coloured diff
highlight whitespace errors in the ‘context’, ‘old’ or ‘new’ lines in the diff
-z do not munge pathnames and use NULs as output field terminators in --raw or --numstat
–abbrev[=] use digits to display object names
show the given source prefix instead of “a/”
show the given destination prefix instead of “b/”
prepend an additional prefix to every line of output
–no-prefix do not show any source or destination prefix
show context between diff hunks up to the specified number of lines
specify the character to indicate a new line instead of ‘+’
specify the character to indicate an old line instead of ‘-’
specify the character to indicate a context instead of ’ ’

Diff rename options
-B, --break-rewrites[=[/]]
break complete rewrite changes into pairs of delete and create
-M, --find-renames[=]
detect renames
-D, --irreversible-delete
omit the preimage for deletes
-C, --find-copies[=]
detect copies
–find-copies-harder use unmodified files as source to find copies
–no-renames disable rename detection
–rename-empty use empty blobs as rename source
–follow continue listing the history of a file beyond renames
-l prevent rename/copy detection if the number of rename/copy targets exceeds given limit

Diff algorithm options
–minimal produce the smallest possible diff
-w, --ignore-all-space
ignore whitespace when comparing lines
-b, --ignore-space-change
ignore changes in amount of whitespace
ignore changes in whitespace at EOL
–ignore-cr-at-eol ignore carrier-return at the end of line
–ignore-blank-lines ignore changes whose lines are all blank
-I, --ignore-matching-lines
ignore changes whose all lines match
–indent-heuristic heuristic to shift diff hunk boundaries for easy reading
–patience generate diff using the “patience diff” algorithm
–histogram generate diff using the “histogram diff” algorithm
choose a diff algorithm
–anchored generate diff using the “anchored diff” algorithm
–word-diff[=] show word diff, using to delimit changed words
use to decide what a word is
equivalent to --word-diff=colour --word-diff-regex=
moved lines of code are coloured differently
how white spaces are ignored in --color-moved

Other diff options
when run from subdir, exclude changes outside and show relative paths
-a, --text treat all files as text
-R swap two inputs, reverse the diff
–exit-code exit with 1 if there were differences, 0 otherwise
–quiet disable all output of the program
–ext-diff allow an external diff helper to be executed
–textconv run external text conversion filters when comparing binary files
ignore changes to submodules in the diff generation
specify how differences in submodules are shown
hide ‘git add -N’ entries from the index
treat ‘git add -N’ entries as real in the index
-S look for differences that change the number of occurrences of the specified string
-G look for differences that change the number of occurrences of the specified regex
–pickaxe-all show all changes in the changeset with -S or -G
–pickaxe-regex treat in -S as extended POSIX regular expression
-O control the order in which files appear in the output
–rotate-to show the change in the specified path first
–skip-to skip the output to the specified path
look for differences that change the number of occurrences of the specified object
–diff-filter [(A|C|D|M|R|T|U|X|B)…[*]]
select files by diff type
–output Output to a specific file

[FAIL] Failed to fetch version from local git: fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

git config --global --add /opt/librenms

[WARN] Your local git branch is not master, this will prevent automatic updates.
You can switch back to master with git checkout master
[FAIL] You need to run this script as ‘librenms’ or root
strong text