Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: wyron on February 15, 2005, 09:10:44 PM

Title: Damn phpsysinfo
Post by: wyron 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 ?
Title: Same in v6.0.-01
Post by: gatox 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
Title: Damn phpsysinfo
Post by: guest22 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!
Title: phpsysinfo display problem solved
Post by: ejfowler 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.
Title: Damn phpsysinfo
Post by: wyron 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.
Title: Re: Damn phpsysinfo
Post by: stefan24 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"
Title: Re: Damn phpsysinfo
Post by: wyron 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.
Title: Damn phpsysinfo
Post by: stefan24 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
Title: Damn phpsysinfo
Post by: wyron 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 ?
Title: Damn phpsysinfo
Post by: sweepy on February 16, 2005, 05:26:50 PM
Hi
look howto here (http://www.sweepy.dyndns.tv)

Sweepy (http://ww.sweepy.dyndns.tv)
Title: Damn phpsysinfo
Post by: wyron 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 ?
Title: Damn phpsysinfo
Post by: ejfowler 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.
Title: Re: phpsysinfo display problem solved
Post by: Denbert 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?
Title: Damn phpsysinfo
Post by: CharlieBrady 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.
Title: Damn phpsysinfo
Post by: ejfowler 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 :-)
Title: Re: phpsysinfo display problem solved
Post by: Denbert 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.
Title: Til denbert
Post by: Janm 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
Title: Re: phpsysinfo display problem solved
Post by: Denbert 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?
Title: Damn phpsysinfo
Post by: ejfowler 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.