PhpSysInfo

From Alpine Linux
Revision as of 09:46, 2 July 2011 by Fab (talk | contribs) (typo)
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Fab on 2 Jul 2011.)

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

The following stuff is shown

  • Uptime
  • CPU
  • Memory
  • SCSI, IDE, PCI
  • Ethernet
  • Floppy
  • Video Information

Basic Installation

For installing the additional packages first activate community packages and update the package index

Install the required packages:

# apk add lighttpd php82 fcgi php82-cgi

Configure Lighttpd

Edit lighttpd.conf (/etc/lighttpd/lighttpd.conf) and uncomment the line:

Contents of /etc/lighttpd/lighttpd.conf

... include "mod_fastcgi.conf" ...

Edit mod_fastcgi.conf (/etc/lighttpd/mod_fastcgi.conf), find and change /usr/bin/php-cgi to /usr/bin/php-cgi82.

Contents of /etc/lighttpd/mod_fastcgi.conf

... "bin-path" => "/usr/bin/php-cgi82" # php-cgi ...

Start lighttpd service and add it to default runlevel

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

Add an additional package (not available at the moment from the repository)

apk add php-mbstring

Installation of pypSysInfo

Now get the current release of phpSysInfo.

wget http://downloads.sourceforge.net/project/phpsysinfo/phpsysinfo/3.0.11/phpsysinfo-3.0.11.tar.gz

Unpack the archive in the current location

tar -xzf phpsysinfo-3.0.11.tar.gz

Copy all files to the webserver data directory or make a symlink (here all files are copied to the webserver directory)

cp -r phpsysinfo /var/www/localhost/htdocs/phpsysinfo

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

cp /var/www/localhost/htdocs/phpsysinfo/config.php.new /var/www/localhost/htdocs/phpsysinfo/config.php

Restart lighttpd

/etc/init.d/lighttpd restart


Now the page is up and running

http://IP-ADDRESS/phpsysinfo