LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] lsapi missing DOCUMENT_ROOT variable

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2012, 06:43 PM
accassar accassar is offline
Member
 
Join Date: Feb 2012
Posts: 31
Default [solved] lsapi missing DOCUMENT_ROOT variable

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 NiteWave; 05-17-2012 at 09:52 PM..
Reply With Quote
  #2  
Old 05-16-2012, 07:46 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
access domain.com/phpinfo.php in browser, _SERVER["DOCUMENT_ROOT"] is there.
Reply With Quote
  #3  
Old 05-16-2012, 08:35 PM
accassar accassar is offline
Member
 
Join Date: Feb 2012
Posts: 31
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?
Reply With Quote
  #4  
Old 05-17-2012, 08:11 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
can you post the output of domain.com/phpinfo.php
Reply With Quote
  #5  
Old 05-17-2012, 09:23 PM
accassar accassar is offline
Member
 
Join Date: Feb 2012
Posts: 31
OK this was my mistake, I overwrite one of the variables in my code. Sorry to waste your time.
Reply With Quote
  #6  
Old 05-17-2012, 09:52 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
not at all. thanks for the update.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:52 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.