Difference between revisions of "PhpSysInfo"

From Amahi Wiki
Jump to: navigation, search
Line 21: Line 21:
  
 
Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself  service module-init-tools start
 
Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself  service module-init-tools start
 +
 +
=== Configure phpsysinfo ===
 +
first make a backup of your original configuration file
  
 
  cd /var/hda/web-apps/phpsysinfo/html
 
  cd /var/hda/web-apps/phpsysinfo/html
  cp config.php config.php_bak
+
  cp phpsysinfo.ini phpsysinfo.inibak
  to make a backup of your original config file
+
 
 +
modify the configuration file
 +
  nano phpsysinfo.ini
  
nano config.php
+
optional changes
  
Change define('PSI_SENSOR_PROGRAM', ''); to define('PSI_SENSOR_PROGRAM', 'LMSensors'); This tells phpsysinfo to use lm_sensors to obtain and display sensor information.
+
DEFAULT_LANG="nl"
 +
LOAD_BAR=true
 +
USE_VHOST=true
 +
SENSOR_PROGRAM="LMSensors"
 +
HDD_TEMP="command"
 +
HIDE_FS_TYPES="tmpfs,devtmpfs"
  
Other optional changes:
 
define('PSI_HIDE_MOUNTS', '/boot,/dev/shm'); - hides /boot and /dev/shm in mounted filesystems
 
define('PSI_HIDE_FS_TYPES', 'tmpfs'); -  hides tmpfs filesystems
 
define('PSI_LOAD_BAR', true);
 
define('PSI_UPS_PROGRAM', 'Apcupsd'); -  use apcupsd to show APC info from APC UPS's
 
define('PSI_HDD_TEMP', 'command'); - tells PSI to obtain current hdd temp
 
  
 
For Ubuntu run also  
 
For Ubuntu run also  

Revision as of 17:24, 28 November 2014


Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.

Getting More Info

After the one click install of phpsysinfo in Amahi 6.0, you need to do some modifications to get all system information displayed.

Fedora Install lm-sensors

open a terminal session and login as root or if you have sudo configured use sudo in front of all commands.

type

su -

at the prompt enter your root password

then type

yum install lm_sensors
sensors-detect

Ubuntu Install lm-sensors (Additional help)

sudo apt-get install lm-sensors
sudo sensors-detect


Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself service module-init-tools start

Configure phpsysinfo

first make a backup of your original configuration file

cd /var/hda/web-apps/phpsysinfo/html
cp phpsysinfo.ini phpsysinfo.inibak

modify the configuration file

nano phpsysinfo.ini

optional changes

DEFAULT_LANG="nl"
LOAD_BAR=true
USE_VHOST=true
SENSOR_PROGRAM="LMSensors"
HDD_TEMP="command"
HIDE_FS_TYPES="tmpfs,devtmpfs"


For Ubuntu run also

sudo dpkg-reconfigure hddtemp

and set suid to YES

after saving config.php phpsysinfo will provide voltage, fan and temperature data.