Koozali.org: home of the SME Server

Damn phpsysinfo

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
Damn phpsysinfo
« on: February 15, 2005, 09:10:44 PM »
I've installed phpsysinfo 2.3 on my new test-6.5b2.
Everything is just fine except the distro-'tag'.
A silly winblows-like flag followed by N.A.
And yes, I've been to the includes/os-file class.Linux.inc.php and made the little addition pointing to /etc/e-smith-release, but it stays the same rather stubbornly.
Has anyone overcome this problem ?
Greetings
wyron
...

gatox

Same in v6.0.-01
« Reply #1 on: February 15, 2005, 10:28:17 PM »
Hi Wyron,

Same here,

If I check the page throught IE on WinXP then I get the Windoze flag but if go throught a Linux Distro I get the proper info.

Go figure.

Luis

guest22

Damn phpsysinfo
« Reply #2 on: February 15, 2005, 11:25:11 PM »
Hi guys,

please contact the author/maintainer of the specific contribs directly and give him/her your feedback. Or examine/modify the supplied sourcecode and donate back.

Please let the author know that this is a SME Server 6.5beta2 experience.

Cheers!

ejfowler

phpsysinfo display problem solved
« Reply #3 on: February 16, 2005, 06:33:11 AM »
I've solved this, all that's required is a wee bit of hacking. Here's a link to my server's phpsysinfo page:

http://www.scatterpated.net/phpsysinfo

I'm using the e-smith-phpsysinfo-public-2.3-1.noarch.rpm contrib by NiGhTsPiRiT.  After installing, there are two easy mods. One is a SME icon, the other involves adding a few lines to class.Linux.inc.php. Rather than ediitng, it's easy enough to drop replacements into the /opt/administrative/phpsysinfo file heirarchy.

I'd like to send you to a link at my web site, but my production SME box recently developed an intermittent disk controller glitch, so I've had to press my beta box into service, and not everything is available yet. Thus, I'm forced to send you an ftp link. Both files may be found here, along with a copy of the e-smith-phpsysinfo-public contrib:

ftp://ftp.scatterpated.net/contribs/phpsysinfo

Copy smeserver.png into the /opt/sdministrative/phpsysinfo/images directory. Overwrite the existing class.Linux.inc.php in the /opt/sdministrative/phpsysinfo/includes/os directory.

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
Damn phpsysinfo
« Reply #4 on: February 16, 2005, 08:23:10 AM »
I see . .
Well, I just followed Knuddi's howto (http://sme.swerts-knudsen.dk), and unpacked the tarball from Sourceforge in an ibay created for the purpose, never realizing that there was in fact a contrib covering the subject.
But perhaps you're right, Hsing Foo, that Knuddi should know about it.
Seeing that he's a regular visitor and (much valued) contributor, I guess he'll find out soon enough.
Greetings
wyron
...

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Re: Damn phpsysinfo
« Reply #5 on: February 16, 2005, 01:28:46 PM »
Quote from: "wyron"
I've installed phpsysinfo 2.3 on my new test-6.5b2.
Everything is just fine except the distro-'tag'.
A silly winblows-like flag followed by N.A.


Just create the file /etc/redhat-release
with something like  "SME Server 6.0.1-01"

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
Re: Damn phpsysinfo
« Reply #6 on: February 16, 2005, 03:15:35 PM »
Quote from: "stefan24"
Just create the file /etc/redhat-release
with something like "SME Server 6.0.1-01"

Sorry, Stefan, but I don't get it ???
Why would phpsysinfo be more willing to read a new file called redhat-release instead of the one already there, called e-smith-release ?
I've been in the file with pico, and there's nothing out of the ordinary in it.
Greetings
wyron
...

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Damn phpsysinfo
« Reply #7 on: February 16, 2005, 03:49:35 PM »
Hi!

phpsysinfo looks for certain files to check the Linux version.
So Red Hat Linux version is checked via /etc/redhat-release existance and content, but e-smith-release will not be checked.

But you could also make a link to the already existing e-smith-release.

cd /etc
ln -s e-smith-release redhat-release

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
Damn phpsysinfo
« Reply #8 on: February 16, 2005, 03:56:45 PM »
Back to basics, then, Stefan.
That is exactly what I wrote in my original post (see at the top) that I had already done.
The question here is: Why doesn't phpsysinfo react accordingly ?
Greetings
wyron
...

sweepy

Damn phpsysinfo
« Reply #9 on: February 16, 2005, 05:26:50 PM »
Hi
look howto here

Sweepy

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
Damn phpsysinfo
« Reply #10 on: February 16, 2005, 07:06:01 PM »
Thanks, Sweepy.
I have no French, je regrette, but I managed to spell myself through your howto anyway.
The only thing I hadn't been into already was the file 'common_functions.php'.
I made the entry and ran ibay-modify . . . but it didn't make any difference.
Phpsysinfo still shows N.A. !
Annoying, isn't it ?
Greetings
wyron
...

ejfowler

Damn phpsysinfo
« Reply #11 on: February 17, 2005, 04:33:11 AM »
Just some ideas here... What web browser(s) are the folks having trouble using? Have you tried clearing the browser's cache? Have you verified the spelling of the /etc/redhat-release file? The class.Linux.inc.php script is very specific regarding the filenames it checks for. Did you verify the permissions are set correctly? They must be the same as the /etc/e-smith-release file, if not, phpsysinfo may not be able to read it.

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
Re: phpsysinfo display problem solved
« Reply #12 on: May 13, 2005, 09:45:06 PM »
Quote from: "ejfowler"
I've solved this, all that's required is a wee bit of hacking. Here's a link to my server's phpsysinfo page:

http://www.scatterpated.net/phpsysinfo

I'm using the e-smith-phpsysinfo-public-2.3-1.noarch.rpm contrib by NiGhTsPiRiT.  After installing, there are two easy mods. One is a SME icon, the other involves adding a few lines to class.Linux.inc.php. Rather than ediitng, it's easy enough to drop replacements into the /opt/administrative/phpsysinfo file heirarchy.

I'd like to send you to a link at my web site, but my production SME box recently developed an intermittent disk controller glitch, so I've had to press my beta box into service, and not everything is available yet. Thus, I'm forced to send you an ftp link. Both files may be found here, along with a copy of the e-smith-phpsysinfo-public contrib:

ftp://ftp.scatterpated.net/contribs/phpsysinfo

Copy smeserver.png into the /opt/sdministrative/phpsysinfo/images directory. Overwrite the existing class.Linux.inc.php in the /opt/sdministrative/phpsysinfo/includes/os directory.


I can't make it happened?

Should i make an ibay?

I’m testing on 6.5rc1 and on SME_7_Alpha_12

Any suggestions?
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Damn phpsysinfo
« Reply #13 on: May 14, 2005, 03:04:52 AM »
Quote from: "stefan24"

But you could also make a link to the already existing e-smith-release.

cd /etc
ln -s e-smith-release redhat-release


Such a link exists out-of-the-box in 7.0alpha.

ejfowler

Damn phpsysinfo
« Reply #14 on: May 14, 2005, 08:49:21 AM »
True, but then the useser would see have the plain ol' Redhat icon instead of the pretty SME Server one I grabbed from contribs.org :-)