The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question regarding population of php server variables

Discussion in 'General Discussion' started by btrieve, Aug 3, 2005.

  1. btrieve

    btrieve Well-Known Member

    Mar 20, 2002
    Likes Received:
    Trophy Points:
    In a CPanel shared environment, running PHP as an apache module, a php info page for any virtual host will not list populated variables such as doc_root.

    However, utilizing super globals like $_SERVER to get the document root work fine within a virtual host directory.

    Is there a basic explanation somewhere as to why these server variables are not populated. Does it have anything to do with php running as an apache module?

Share This Page