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
  #11  
Old 09-18-2008, 02:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
We tried similar configuration at vhost template level, still works.

I think the problem is that, for some reason the "open_basedir" configuration has not been applied at all, not that $VH_ROOT does not get expanded.

How about the $VH_ROOT in "error_log" configuration?
Reply With Quote
  #12  
Old 09-22-2008, 08:45 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
mistwang,

Same deal for the error_log. I created a test php file with a parse error which is displayed when I access the script. However. I don't get a php_errors.log file. Based on the following admin values it should have created the file.

php_admin_value error_log /www/$VH_ROOT/logs/php_errors.log
php_admin_value log_errors On
Reply With Quote
  #13  
Old 09-22-2008, 08:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Since "$VH_ROOT" is "/www/$VH_NAME", should not
php_admin_value error_log /www/$VH_ROOT/logs/php_errors.log

be

php_admin_value error_log $VH_ROOT/logs/php_errors.log

?

If the directory /www/www/$VH_NAME/logs/php_errors.log does not exist, the log file will not be created.

You can verify the value with phpinfo() page
Reply With Quote
  #14  
Old 09-22-2008, 09:40 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
mistwang,

You are correct! I completely missed the fact the $VH_ROOT contained the /www portion. Therefore the template would have been trying to create the file in directory /www/www which doesn't exist. Thanks for spotting it! It's amazing how something so simple can be easily missed.
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 03:13 AM.



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