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

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
Re: phpsysinfo display problem solved
« Reply #15 on: May 18, 2005, 12:39:24 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.


Hi there,

I just installed this on a 6.0 server.

It broke the http server?

Please help - Can't run server-manager to restore old setup.
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

Janm

Til denbert
« Reply #16 on: May 18, 2005, 01:36:59 PM »
Jeg har lige lavet en forklaring til dig med filer i
har du en email så send den til mig
min er jan@design.jm-data.dk

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
Re: phpsysinfo display problem solved
« Reply #17 on: May 18, 2005, 06:47:08 PM »
Quote from: "Denbert"


Hi there,

I just installed this on a 6.0 server.

It broke the http server?

Please help - Can't run server-manager to restore old setup.


Investigated and tried to start apache manually:

[root@pdfserver root]# httpd restart
Syntax error on line 738 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

Checked line 738 in httpd.conf:

# Administration: phpsysinfo
Alias /phpsysinfo /opt/administration/phpsysinfo
<Directory /opt/administration/phpsysinfo>
   Options -Indexes
   AllowOverride None
   order deny,allow
   deny from all
   allow from all
   AddType application/x-httpd-php .php .php3
   php_flag  magic_quotes_gpc  on
   php_flag  track_vars        on
</Directory>

Line 738 is: php_flag  magic_quotes_gpc  on

Any one got a clue and a cure?
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

ejfowler

Damn phpsysinfo
« Reply #18 on: June 19, 2005, 07:47:39 AM »
I just learned something new tonight. In order for the hack I posted above to work, you have to delete the /etc/redhat-release file or simlink, if one is present. class.Linux.inc.php looks for /etc/redhat-release prior to /etc/e-smith-release, if it finds the latter, it displays the Shadowman icon instead of the SME Server icon.