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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > PHP $DOCUMENT_ROOT variable missing?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2004, 03:15 PM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Default PHP $DOCUMENT_ROOT variable missing?

Hello.

I'm trying to migrate a web-site to the lsws. It uses the $DOCUMENT_ROOT extensivly, in order to include other php's. As it seems, this variable is missing in the bundled PHP installation.

How can I attach then the lsws to the general PHP, and how it will be used (module, fastcgi/cgi)? I seemed something regarding it during the installation process, can't recall now what it was.

I'm using the latest, LiteSpeed Web Server V1.5.11 Standard Edition.

Thank you.
Reply With Quote
  #2  
Old 12-07-2004, 08:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Hi,

Looks like your PHP script depends on "register_globals", you can either use $_SERVER["DOCUMENT_ROOT"] or turn on "register_globals" by changing the lsws/conf/php.ini .

"register_globals" is not recommended by PHP team, so it is turned of by default.

Best Regards,
George Wang
Reply With Quote
  #3  
Old 12-08-2004, 02:59 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Hello.

Thank you for the reply. I totally forgot regarding this issue. The interesting thing is, that I do have a "php_flag register_globals on" defined in this site's .htaccess file. Does lsws supports loading custom PHP overides from the .htaccess?

I have set in the lsws virtual host, "allow overide all". It seems as not including this value.
Reply With Quote
  #4  
Old 12-08-2004, 08:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I see.
PHP's FastCGI SAPI does not allow runtime configuration override, so lsws can not support that now. PHP related directives in .htaccess are ignored. It will change when we implement our own SAPI interface.
Reply With Quote
  #5  
Old 12-08-2004, 11:35 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Ok - thank you for the explanation.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
Usability issue with LSAPI PHP jrmarino PHP 5 05-08-2007 01:54 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Best configuration for PHP LiteSpeed SAPI jeff Install/Configuration 6 10-19-2005 09:54 AM
Custom PHP integration RikitZap Install/Configuration 2 04-25-2005 06:52 PM


All times are GMT -7. The time now is 11:04 AM.



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