rotexdegba / linux-server-info-api

A web app that emits server info (mainly in JSON format) to any web client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server Info API Documentation

Installation Instructions

  • On centos make sure php-posix is installed
    • sudo yum install php-posix
    • If running apache webserver:
      • sudo service httpd restart
  • Make sure ./logs, ./storage/sqlite & ./tmp/session are writable by your webserver
  • Run composer install
  • Run composer run-script generate-config-files
    • Edit the config files
  • Run ./vendor/bin/phinx --verbose migrate -e production
  • Test by running the dev server
    • php -S 0.0.0.0:8888 -t public
      • on windows, open a powershell terminal in the directory this application is installed in an first run the command below before running the php dev server command above:
        • Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
    • You can login with the default accounts:
      • admin : admin
      • root : root
    • You should modify the 'vespula_auth_adapter_obj' entry in the app settings file to configure more secure authentication

Windows

  • You need to have powershell
  • Allow execute ps1 scripts Set-ExecutionPolicy RemoteSigned –Force

Linux

  • /proc and /sys mounted and readable by PHP

API Documentation

  • Documentation for the API end points can be found here

About

A web app that emits server info (mainly in JSON format) to any web client.


Languages

Language:PHP 99.4%Language:CSS 0.4%Language:Hack 0.1%Language:JavaScript 0.1%