Page 1 of 1
Struggling with phpsysinfo and hddtemp
Posted: 18 May 2007, 18:54
by TazUk
Hi
I've received my Bubba, set it up on my Windows home network and piped across 80GB of data. Now I'm trying to set up phpsysinfo and hddtemp and... I'm stuck.
I've edited the sources list and installed phpsysinfo and hddtemp, answering install questions with the default response. And now I'm stuck

- if I go to
http://bubba/phpsysinfo/ I get a 404 Not found page.
I've spent the last half-hour or so looking around around on Google but without much luck.
Any chance of a few pointers to get this up and running? Ideally I'd like to be able to link the display into the existing web admin login.
TIA,
TazUk
Posted: 20 May 2007, 12:02
by lelle
Just create a symbolic link to the directory where phpsysinfo is installed, ie cd /var/www/html; ln -s /usr/share/phpsysinfo phpsysinfo
Posted: 20 May 2007, 12:47
by TazUk
lelle wrote:Just create a symbolic link to the directory where phpsysinfo is installed, ie cd /var/www/html; ln -s /usr/share/phpsysinfo phpsysinfo
You're a star
Many thanks
ok - thanks to lelle I've got my phpsysinfo page, but am unable to retrieve processor information or hard drive temp.
I've messed around with the lm-sensors package but seem to be getting nowhere fast and am a little paranoid about having to reset my bubba (I've just finished transferring 70GB of data back on the the drive).
I've also edited the hddtemp.db file to include my Western Digital drive - when run from the command line this returns the temperature. I've configured it as a daemon using the defaults, but my phpsysinfo page doesn't show temperature (I've included the hddtemp line in the config file)
Any pointers gratefully appreciated..
Posted: 20 May 2007, 17:56
by lelle
Hi TazUk,
There seems to be an issue with the apt-get package (had the same problem myself).
If you download the phpsysinfo gzipped tarball directly from sourceforge.net (
http://sourceforge.net/project/showfile ... roup_id=15),
unzip it, untar it, copy config.php.new to config.php, remove the comments before the hddtemp command and create the symlink from /var/www/html it works. Good luck!
Posted: 21 May 2007, 14:29
by TazUk
That did the trick.
Many thanks for the help

Posted: 30 Jan 2008, 15:47
by davidb
Hello.
How do you mean "download the phpsysinfo gzipped tarball" .. How shall I download it, unzip ip, untar it, copy config.php and so on? I really need a fully understandible guide for this.. I managed to get the phpsys-page running but I didn't see information about the cpu-processor and so on. But now I really managed to screw things up..
It's not about the phpsysinfo-page but it is for the whole web-admin-page. I can't access it, but now I am reinstalling Bubba and we will have to see what is going to happen.
Posted: 30 Jan 2008, 16:09
by Ubi
If I understand your question correctly you want an intro into the unix command line". Generally I recommend these two PDF's:
http://www.ohiohtcia.org/linuxintro-1.8.1.pdf and
http://vic.gedris.org/Manual-ShellIntro ... lIntro.pdf
In short:
* go to sourceforge (
http://sourceforge.net/projects/phpsysinfo/) , click on the download links and download the tar file somewhere onto bubba (Lets put it in /home/user/phpSysInfo-3.0-RC3.tar.gz).
* Login to the linux shell as a normal user (use Putty to access the shell from a windows client). Then become root by entering
Now unpack the phpsysinfo file. As the extention is .tar.gz we need to unzip as well as unpack. Also, put it into a location where we want it in the end.
Code: Select all
cd /var/www/html
tar -xzvf /home/user/phpSysInfo-3.0-RC3.tar.gz
Now copy the config file:
Then edit the new config file:
and thats's it except for all the symlinks and redirects which are mentioned above
good luck
Ubi
Posted: 31 Jan 2008, 06:33
by davidb
Thank you for all your time and help.
Phpsysinfo 3.0, isn't that for PHP5? I can't install the PHP5 package on my Bubba, only PHP4. Can I download the phpsysinfo2-package for Bubba and do this things as you mention?
What do you mean by "remove the comments before hddtemp command" ..
And what should I do when I type in nano config.php ?
Posted: 31 Jan 2008, 12:53
by Eek
You can use the same instructions for phpsysinfo version 2.
If you have installed hddtemp and run it as a deamon,
you can use nano to edit the config.php file
and
remove the comments before hddtemp command
you will see this
Code: Select all
// $hddtemp_avail = "tcp"; // read data from hddtemp deamon (localhost:7634)
make it look like this
Code: Select all
$hddtemp_avail = "tcp"; // read data from hddtemp deamon (localhost:7634)
enjoy
Eek
Posted: 31 Jan 2008, 16:22
by davidb
Eek: Hello.
Thanks for your reply. I am sure I can managed do to this, but I am not sure where to find the "config.php" file. I know it is connected with hddtemp for some how, but I can't remember in which catalog hddtemp are in.
First, I am installing the phpsysinfo, then I am going to edit the config.php file, right? How do know where the config.php file is?
Posted: 31 Jan 2008, 17:42
by Cheeseboy
Hello davidb,
On my bubba it is in /usr/share/phpsysinfo/config.php, but I probably copied it there from some other default location.
The instructions in my config.php just tells it to read it from a network address on the localhost:
// !!ATTENTION!! hddtemp might be a security issue
$hddtemp_avail = "tcp"; // read data from hddtemp deamon (localhost:7634)
So you might not want to do it the way I did it....
In order for this to work, you must start hddtemp as a daemon as Eek said...
Have fun.
Posted: 01 Feb 2008, 04:16
by davidb
Cheeseboy: Hello!
I have started hddtemp as a deamon. It is always running. I haven't install phpsysinfo yet, because I am not sure where to find this config.php .. Is it in phpsysinfo-package or the hddtemp-package?
Posted: 01 Feb 2008, 06:38
by Eek
download phpsysinfo
unpack it
read the textfile
and all your questions will be answered
