#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    36
    Rep Power
    15
    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
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    That info comes from Apache (or whatever you are using for a web server).
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    36
    Rep Power
    15
    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
  6. #4
  7. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    Check httpd.conf
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    36
    Rep Power
    15
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by rod k:
    Check httpd.conf[/quote]

    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).

Similar Threads

  1. Anyone using Zend Studio 3?
    By bcyde in forum Dev Shed Lounge
    Replies: 74
    Last Post: October 14th, 2004, 09:19 PM
  2. applets on-line don't work
    By easy in forum Java Help
    Replies: 7
    Last Post: July 27th, 2004, 07:15 AM
  3. Smile Cam Java
    By Davwbs in forum Java Help
    Replies: 0
    Last Post: January 30th, 2004, 05:05 PM
  4. Differences between Sun JVM and Microsoft JVM.
    By aca99cjg in forum Java Help
    Replies: 1
    Last Post: January 30th, 2004, 04:05 AM
  5. web server in secure mode not connecting to http application
    By tcsasp in forum Apache Development
    Replies: 0
    Last Post: November 11th, 2003, 06:02 AM

IMN logo majestic logo threadwatch logo seochat tools logo