Koozali.org: home of the SME Server

SME 7.x phpsysinfo

Offline electroman00

  • *****
  • 491
  • +0/-0
SME 7.x phpsysinfo
« on: February 16, 2006, 04:25:53 PM »
Here's info on installing phpsysinfo SME 7pre1.

Probablly will fly on newer versions however I have tested it only on 7pre1.
02/14/2006

SME7 Contribs Right Here

Development button aka Wiki to the left..

Phpsysinfo working on 7pre1.

Also if you get a pkg working please add it to the Wiki link above.

Now that the forum is reorg'd thing's should improve around here....FINALLY..!!

Offline 4first

  • **
  • 25
  • +0/-0
    • http://robtho01.cust.internode.on.net/
SME 7.x phpsysinfo
« Reply #1 on: June 12, 2006, 10:39:39 AM »
Has anyone got PHPSysInfo working on 7.x RC2 or 3?

sekt1953

Has anyone got PHPSysInfo working on 7.x RC2 or 3?
« Reply #2 on: June 12, 2006, 04:29:03 PM »
yes i have PhpSysInfo version 2.5.1 running on my test server, first i upgrade from server version 6.5 and i have to run my install ones again and then it works, second i made a fress install af SME-SERVER 7.0rc3 and then run my install script and it works


Here is my script :
Code: [Select]

#!/bin/sh

clear
echo "==================================================================="
echo " To run script type 'sh phpSysInfo-install.sh Directory IBay File' "
echo "        Directory default to ..: 'PhpSysInfo'                      "
echo "        IBay default to .......: 'Primary'                         "
echo "        File default to .......: 'phpsysinfo-2.5.1.tar.gz'         "
echo "==================================================================="
echo " This phpSysInfo install script has bee developed by               "
echo "  Svenn-Erik Krengelund Thomsen at http://sme.sekt.dk              "
echo "  e-mail me at mailto:sekt@sekt.dk                                 "
echo "  skype me at callto:svenn-erik                                    "
echo "  and developed for use with SME Server version 6.5-01             "
echo "                                                                   "
echo " ----------------------------------------------------------------- "
echo " Revision History:                                                 "
echo "                                                                   "
echo " Dec  29, 2005: Initial revision history.                          "
echo " June 01, 2006: can run with comandline options                    "
echo " ----------------------------------------------------------------- "
echo " No express or implied warranties are provided and its usage       "
echo " is at your own risk!                                              "
echo "                                                                   "
echo " If you feel confortable with the above then press <Enter>         "
echo " if not press <Ctrl>+<C> to abort the instalation                  "
echo "==================================================================="
echo ""
read x
clear

if [ $1 ]
then
  echo "Using install directory as specified on command line = '$1'"
  MyDir=$1
else
  echo "No Install directory specified using default 'PhpSysInfo'"
  MyDir="PhpSysInfo"
fi

if [ $2 ]
then
  echo "Using install ibay as specified on command line = '$2'"
  MyIBay=$2
else
  echo "No Install ibay specified using default 'Primary'"
  MyIBay="Primary"
fi

if [ $3 ]
then
  echo "Using the file as specified on command line = '$3'"
  MyFile=$3
else
  echo "No file option specified using default 'phpsysinfo-2.5.1.tar.gz'"
  MyFile="phpsysinfo-2.5.1.tar.gz"
fi

if [ -d /home/e-smith/files/ibays/$MyIBay ]
then

  mkdir /root/plus/phpsysinfo/download
  cd /root/plus/phpsysinfo/download

  echo ""
  echo "================================================================================="
  echo "= First Download all required file                                               "
  echo "================================================================================="
  echo ""

  wget -nc http://kent.dl.sourceforge.net/sourceforge/phpsysinfo/$MyFile

  echo ""
  echo "================================================================="
  echo "  Installing $MyFile                                             "
  echo "-----------------------------------------------------------------"
  echo ""
  mkdir -p /home/e-smith/files/ibays/$MyIBay/html/$MyDir
  tar -zxvf $MyFile
  mv ./phpsysinfo/* /home/e-smith/files/ibays/$MyIBay/html/$MyDir
  rmdir  phpsysinfo
  cd /home/e-smith/files/ibays/$MyIBay/html/$MyDir
  mv config.php.new config.php
 
  echo ""
  echo "================================================================="
  echo " Enable the PHP script to access the /proc directory             "
  echo "================================================================="
  echo ""

  /sbin/e-smith/db accounts setprop $MyIBay PHPBaseDir /home/e-smith/files/ibays/$MyIBay/:/proc:/bin

  echo ""
  echo "================================================================="
  echo " Update iBay, Please wait!                                       "
  echo "================================================================="
  echo ""

  /sbin/e-smith/signal-event ibay-modify $MyIBay

  echo ""
  echo "================================================================="
  echo " Installation completed"
  echo "================================================================="
  echo ""
else
  echo ""
  echo "================================================================="
  echo "The '$MyIBay' iBay does not exist!!                              "
  echo "Please create one and return to the installation script          "
  echo "================================================================="
fi



the script kan be run with option

sh PhpSysInfo.sh Directory IBay File

If not used Directory default to PhpSysInfo, IBay Default to Primary and File default to phpsysinfo-2.5.1.tar.gz

I have som more script for SMEServer 6.0 & 6.5 at http://sme.sekt.dk/Server_Script/
Have good fun!

Svenn-Erik K. Thomsen

Offline 4first

  • **
  • 25
  • +0/-0
    • http://robtho01.cust.internode.on.net/
SME 7.x phpsysinfo
« Reply #3 on: June 15, 2006, 01:50:19 PM »
thanks! will give it a go and let you know results