[solved] lsapi missing DOCUMENT_ROOT variable

Discussion in 'Install/Configuration' started by accassar, May 17, 2012.

  1. accassar

    accassar New Member

    Hello,

    Some websites are expecting $_SERVER[DOCUMENT_ROOT] to be available, and when testing under LSAPI it appears LSWS does not pass this variable to LSAPI hence DOCUMENT_ROOT is not available.

    How can I make this available?
    Last edited by a moderator: May 18, 2012
  2. NiteWave

    NiteWave Administrator

    access domain.com/phpinfo.php in browser, _SERVER["DOCUMENT_ROOT"] is there.
  3. accassar

    accassar New Member

    Hello, mine doesn't have it in there. Using TCPDUMP I can't even see LSWS passing this through. Is there some setting I am missing?
  4. NiteWave

    NiteWave Administrator

    can you post the output of domain.com/phpinfo.php
  5. accassar

    accassar New Member

    OK this was my mistake, I overwrite one of the variables in my code. Sorry to waste your time.
  6. NiteWave

    NiteWave Administrator

    not at all. thanks for the update.

Share This Page