August 4th, 2000, 02: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_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?
August 4th, 2000, 03:24 PM
That info comes from Apache (or whatever you are using for a web server).
August 4th, 2000, 04: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
August 5th, 2000, 01:49 PM
August 7th, 2000, 11:07 AM
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by rod k:
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).