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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Apache Style Configurations

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2008, 07:44 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default Apache Style Configurations

When overriding php directives in LiteSpeed under "Apache Style Configurations" for a vhost template which server variables are available to reference?

Doing this works:
php_admin_value error_log /www/$VH_NAME/logs/php_errors.log

Doing this doesn't work
php_admin_value error_log /www/$VH_ROOT/logs/php_errors.log
Reply With Quote
  #2  
Old 07-11-2008, 12:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
We will make $VH_ROOT, $VH_DOMAIN, $DOC_ROOT work in next release.
Reply With Quote
  #3  
Old 07-11-2008, 05:01 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Thanks mistwang!
Reply With Quote
  #4  
Old 09-16-2008, 02:05 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Seems this ability got removed from 3.3.18. I can not longer use the variable $VH_ROOT in the Apache Style Configurations.
Reply With Quote
  #5  
Old 09-16-2008, 02:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It should not be.
Which version you upgrade from? Tried switch back?
Reply With Quote
  #6  
Old 09-16-2008, 02:55 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Mistwang,

I've tried all the way back to 3.3.16 when I first reported it. The following fails to work correctly.

php_admin_value open_basedir /usr/share/pear:/www/$VH_ROOT:/tmp
php_admin_value error_log /www/$VH_ROOT/logs/php_errors.log

However, if I replace $VH_ROOT with $VH_NAME it seems fine.

The value of $VH_ROOT would be for example: /www/home.com
Reply With Quote
  #7  
Old 09-16-2008, 02:58 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Does it mean $VH_ROOT never worked? We need to know which version works if there is so we can track the code changes.
Reply With Quote
  #8  
Old 09-17-2008, 06:12 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
mistwang,

When I made the request I was running 3.3.15. Prior to the official release of 3.3.16 I was able to download 3.3.16 and upgrade. I was sure this version (3.3.16) was patched to allow $VH_ROOT var within the Apache Style Configuration.
Reply With Quote
  #9  
Old 09-18-2008, 12:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Where do you use the variable for? server level, vhost level, vhost template.

We tested vhost template, seems work well.
Reply With Quote
  #10  
Old 09-18-2008, 01:48 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
mistwang,

I'm using the variable at the vhost template level. The value for $VH_ROOT at the template level is /www/$VH_NAME. Then I have the following Apache Style Configurations for the VHOST template.

php_admin_value open_basedir /usr/share/pear:/www/$VH_ROOT:/tmp
php_admin_value error_log /www/$VH_ROOT/logs/php_errors.log
php_admin_value log_errors On

This causes the site to report the following error:

Fatal error: Unknown: Failed opening required '/www/testsite.com/www/index.php' (include_path='.:/usr/share/pear') in Unknown on line 0


Changing the value to $VH_NAME for the "Apache Style Configurations" works.
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 05:56 PM.



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