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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [Resolved] LiteSpeed Path Issue

Reply
 
Thread Tools Display Modes
  #11  
Old 08-24-2010, 09:56 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Thanks for the advice.

not sure where following section in httpd.conf
Quote:
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/philipss:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
came from, should it be defined in which part of cPanel?

this value is picked by lsws and results in the final phpinfo() page.
Reply With Quote
  #12  
Old 08-24-2010, 10:15 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Those come from a template that cPanel uses to built the virtual host. I'd look at the documentation on virtualhost includes (http://docs.cpanel.net/twiki/bin/vie..._Include_Files) You can create a configuration file that will only be picked up by that one domain. It adds the include at the very bottom of the virtualhost container. If I understand LSWS correct it will pick up the last version of the directive (i.e. if there are multiple open_basedir) so the includes 'should' work perfect with LSWS.
Reply With Quote
  #13  
Old 08-24-2010, 10:23 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, /userdata/ is for specific vhost. I saw the directive(php_admin_value ) exist s in every vhost definition. and yes, this is the last version of php_admin_value definition within the vhost.
Reply With Quote
  #14  
Old 08-25-2010, 06:44 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
Very true. Why is it using the php4 variables anyhow?



Quote:
Originally Posted by ffeingol View Post
Not to get too OT here, but if you hand edited the httpd.conf file you are just waiting for a disaster. The next time cPanel rebuilds httpd.conf those chages will get wiped out.
Reply With Quote
  #15  
Old 08-25-2010, 06:48 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
I think "/usr/lib/php:/usr/local/lib/php" is for php5, and "/usr/php4/lib/php:/usr/local/php4/lib/php" for php4. so it includes both php4 and php5.
Reply With Quote
  #16  
Old 08-25-2010, 06:52 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
And why would it be using PHP4 when it is disabled in LiteSpeed?

Quote:
Originally Posted by NiteWave View Post
I think "/usr/lib/php:/usr/local/lib/php" is for php5, and "/usr/php4/lib/php:/usr/local/php4/lib/php" for php4. so it includes both php4 and php5.
Reply With Quote
  #17  
Old 08-25-2010, 07:04 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
php_admin_value open_basedir "/home/philipss:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
is not set by litespeed. it's set by user or app like RVSitebuilder. lsws just inherit user's setting. the user may set "/usr/php3/lib" at his will, lsws can't guess its php3 and don't inherit it.
Reply With Quote
  #18  
Old 08-25-2010, 07:05 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
There is a PHP4 and a PHP5 section set by cPanel for Apache. LiteSpeed should be picking up the PHP5 section.

Quote:
Originally Posted by NiteWave View Post
is not set by litespeed. it's set by user or app like RVSitebuilder. lsws just inherit user's setting. the user may set "/usr/php3/lib" at his will, lsws can't guess its php3 and don't inherit it.
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 12:42 AM.



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