|
Author
|
Topic: phpinfo source for system info
|
talambert Junior Member
|
posted August 04, 2000 01:51 PM
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_versionThe 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
That info comes from Apache (or whatever you are using for a web server). |
talambert Junior Member
|
posted August 04, 2000 03:39 PM
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
Check httpd.conf |
talambert Junior Member
|
posted August 07, 2000 10:07 AM
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). |