★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/002280.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  phpinfo source for system info

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   phpinfo source for system info
talambert
Junior Member
posted August 04, 2000 01:51 PM     Click Here to See the Profile for talambert   Click Here to Email talambert     Edit/Delete Message Reply w/Quote
Does anyone know where phpinfo gets its info regarding the system - that is the info that comes right at the top after the credits where is says
System: Linux nodename.domain.superdomain kernel_version

The reason I ask is that mine keeps giving an incorrect response. It gives a name that no longer applies to the system. When it gives host, domain and all that down in the lower sections, that is all correct, but the upper one doesn't change. Has anyone run into this?

Cheers
Tom

rod k
Member
posted August 04, 2000 02:24 PM     Click Here to See the Profile for rod k   Click Here to Email rod k     Edit/Delete Message Reply w/Quote
That info comes from Apache (or whatever you are using for a web server).

talambert
Junior Member
posted August 04, 2000 03:39 PM     Click Here to See the Profile for talambert   Click Here to Email talambert     Edit/Delete Message Reply w/Quote
I realize it's coming from Apache, but what Apache variables is it retrieving and where are they set? As I mentionned, down at the bottom of the phpinfo results, all the host/domain name stuff is correct. Everything in the /etc/hosts and the apache config files has been changed (ServerName etc). Perhaps apache sets a system name at compilation time and recompilation would help? Maybe I need to take the question to an apache newsgroup.

Thanks for the help

Tom

rod k
Member
posted August 05, 2000 12:49 PM     Click Here to See the Profile for rod k   Click Here to Email rod k     Edit/Delete Message Reply w/Quote
Check httpd.conf

talambert
Junior Member
posted August 07, 2000 10:07 AM     Click Here to See the Profile for talambert   Click Here to Email talambert     Edit/Delete Message Reply w/Quote
quote:
Originally posted by rod k:
Check httpd.conf

I've checked httpd.conf and every conf file I could find (php.ini, /etc/hosts, and so on and so forth). I eventually did a recuursive grep of my system and found the offending domain in only two places: /etc/system.cfg and /proc/kcore (This is Caldera Open Linux, Linux kernel 2.1 I think).

I changed the system.cfg and still phpinfo() gives the old domain. What I really want to know is where does phpinfo get the domain it uses for "System" and why does it differ from the domain it displays for all other fields (which match the way the computer IDs itself).

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.