ich habe mir die aktulle version von phpsysinfo installiert.
Allerdings bekomme ich folgende Meldungen beim ausführen der Webseite.
common_functions.php 372 file_exists(/proc/loadavg) the file does not exist on your machine
common_functions.php 372 file_exists(/proc/sys/kernel/hostname) the file does not exist on your machine
common_functions.php 372 file_exists(/proc/version) the file does not exist on your machine
common_functions.php 372 file_exists(/proc/uptime) the file does not exist on your machine
common_functions.php 158 find_program(who) program not found on the machine
common_functions.php 372 file_exists(/proc/net/dev) the file does not exist on your machine
common_functions.php 372 file_exists(/proc/cpuinfo) the file does not exist on your machine
common_functions.php 372 file_exists(/proc/meminfo) the file does not exist on your machine
common_functions.php 158 find_program(df) program not found on the machine
common_functions.php 158 find_program(df) program not found on the machine
common_functions.php 158 find_program(mount) program not found on the machine
Woran kann das liegen das er die Files nicht findet?
Es könnte recht riskant sein, auf einem Produktivsystem PHP so viele Rechte zu geben, dass es auf derlei Prozesse und Kommandos zugreifen darf.
Mag zwar komfortabel sein, aber bietet viel Angriffsfläche.
Schreib dir doch lieber ein Bash-Script, das du in der Shell mit sudo ausführst.
-1 bedeutet, dass beim Ausführen des Programms ein Fehler aufgetreten ist. Was allerdings genau für einer, ist anhand dessen nicht unbedingt nachvollziehbar, denn die Fehlermeldung des Programmes wird wohl an den STDOUT gegangen sein, den das PHP-Script offenbar nicht abfängt.