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
  #1  
Old 08-23-2010, 12:53 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
Question [Resolved] LiteSpeed Path Issue

Having an issue with RVSitebuilder. It appears the script wants to pull from the path which LiteSpeed does not have configured.

[STDERR] PHP Warning: is_file() [<a href='function.is-file'>function.is-file</a>]: open_basedir restriction in effect. File(/usr/local/lsws/lsphp5/lib/php/RVSeagullMod/lib/SGL/FrontController.php) is not within the allowed path(s): (/home/philipss:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/philipss/public_html/new/rvscommonfunc.php on line 50


FrontController.php is located @ /usr/local/lib/php/RVSeagullMod/lib/SGL/FrontController.php

So the question is how do I append to the path to meet the requirements of this or change where the default path is searched?

Last edited by NiteWave; 08-24-2010 at 04:31 AM..
Reply With Quote
  #2  
Old 08-23-2010, 06:26 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
as the warning message suggested,

FrontController.php is located at /usr/local/lsws/lsphp5/lib/php/RVSeagullMod/lib/SGL/

so you need add
/usr/local/lsws/lsphp5/lib/php/RVSeagullMod/lib/SGL/
or (should be better)
/usr/local/lsws/lsphp5/lib/php/
to your open_basedir (search php.ini)
Reply With Quote
  #3  
Old 08-23-2010, 06:27 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
That is not the proper path though as explained clearly. The proper path is :

/usr/local/lib/php/RVSeagullMod/lib/SGL/FrontController.php
Reply With Quote
  #4  
Old 08-23-2010, 06:43 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
what's the include_path value in phpinfo() output?
Reply With Quote
  #5  
Old 08-23-2010, 06:46 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
include_path .:/usr/local/lsws/lsphp5/lib/php .:/usr/local/lsws/lsphp5/lib/php

Quote:
Originally Posted by NiteWave View Post
what's the include_path value in phpinfo() output?
Reply With Quote
  #6  
Old 08-23-2010, 07:03 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
so I think the issue is almost clear: the order of include paths.

when
PHP Code:
include "RVSeagullMod/lib/SGL/FrontController.php" 
it searches FrontController.php in order of include_path

you wish it get
/usr/local/lib/php/RVSeagullMod/lib/SGL/FrontController.php
instead of
/usr/local/lsws/lsphp5/lib/php/RVSeagullMod/lib/SGL/FrontController.php

then try to change include_path in php.ini to
.:/usr/local/lib/php:/usr/local/lsws/lsphp5/lib/php
etc
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:42 PM.



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