Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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 ?
-
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
-
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!
-
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 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.
-
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"
-
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.
-
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
-
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 ?
-
Hi
look howto here (http://www.sweepy.dyndns.tv)
Sweepy (http://ww.sweepy.dyndns.tv)
-
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 ?
-
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.
-
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?
-
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.
-
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 :-)
-
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.
-
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
-
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?
-
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.