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,220
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,220
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,220
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
  #7  
Old 08-23-2010, 07:08 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
No Include path is defined @ /usr/local/lsws/lsphp5/lib/php.ini which IS the php.ini file used.

Where else would it be pulling from?

Quote:
Originally Posted by NiteWave View Post
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
  #8  
Old 08-23-2010, 09:35 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
?

.




.
Reply With Quote
  #9  
Old 08-24-2010, 02:15 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,220
made 2 changes, the cPanel plugin RVSitebuilder working now:
Quote:
1.edit /usr/local/lsws/lsphp5/lib/php.ini
add
include_path = ".:/usr/local/lib/php:/usr/local/lsws/lsphp5/lib/php"
at the end of php.ini
-- because of RVSitebuilder installed under /usr/local/lib/php

2.edit /usr/local/apache/conf/httpd.conf
vhost "example.com" section, replace
<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>
with
<IfModule sapi_apache2.c>
php_admin_value open_basedir none
</IfModule>
then restart lsws
Reply With Quote
  #10  
Old 08-24-2010, 07:51 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
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
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.