Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Struggling with phpsysinfo and hddtemp

Got problems with Bubba? Then this forum is for you.
Locked
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Struggling with phpsysinfo and hddtemp

Post 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 :roll: - 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
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
lelle
Posts: 69
Joined: 02 Jan 2007, 20:25
Location: Stockholm, Sweden

Post 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
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post 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 :mrgreen:
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..
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
lelle
Posts: 69
Joined: 02 Jan 2007, 20:25
Location: Stockholm, Sweden

Post 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!
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post by TazUk »

That did the trick.

Many thanks for the help :D
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
davidb
Posts: 15
Joined: 30 Jan 2008, 11:51

Post 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.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Post 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

Code: Select all

su -
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:

Code: Select all

cp config.php.new config.php
Then edit the new config file:

Code: Select all

nano config.php
and thats's it except for all the symlinks and redirects which are mentioned above

good luck
Ubi
davidb
Posts: 15
Joined: 30 Jan 2008, 11:51

Post 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 ?
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post 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
davidb
Posts: 15
Joined: 30 Jan 2008, 11:51

Post 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?
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Post 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.
davidb
Posts: 15
Joined: 30 Jan 2008, 11:51

Post 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?
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

download phpsysinfo
unpack it
read the textfile
and all your questions will be answered :)
Locked