From Alpine Linux
(Redirected from Phpsysinfo)
Jump to: navigation, search

phpSysInfo is a simple application that displays information about the host it's running on.

The following stuff is shown

  • Uptime
  • CPU
  • Memory
  • Ethernet
  • Floppy
  • Video Information

Install lighttpd and PHP

Install the additional packages:

apk add lighttpd php-common php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-cgi fcgi

apk add php-pdo php-pdo_pgsql php-soap php-xmlrpc php-posix php-mcrypt php-gettext php-ldap php-ctype php-dom

Configure Lighttpd

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"

Start lighttpd service and add to needed runlevel

rc-service lighttpd start && rc-update add lighttpd default

Installation of pypSysInfo

Create a directory named webapps

mkdir -p /usr/share/webapps/

Now get the current release of phpSysInfo.

cd /usr/share/webapps/ wget

Unpack the archive in the current location

tar -xzf phpsysinfo-3.2.5.tar.gz && rm phpsysinfo-3.2.5.tar.gz

A config.php is needed to run phpSysInfo. The fastest way is to make a copy of the template file.

cp phpsysinfo/ phpsysinfo/config.php

Create a symlink that point to the webserver directory.

ln -s /usr/share/webapps/phpsysinfo/ /var/www/localhost/htdocs/phpsysinfo

Change the permission of the directory.

chmod -R 777 /usr/share/webapps/

Restart lighttpd

/etc/init.d/lighttpd restart

Now the page is up and running