Koozali.org: home of the SME Server

Damn phpsysinfo

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.