LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   [Resolved] LiteSpeed Path Issue (http://www.litespeedtech.com/support/forum/showthread.php?t=4255)

UWH-David 08-23-2010 12:53 PM

[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?

NiteWave 08-23-2010 06:26 PM

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)

UWH-David 08-23-2010 06:27 PM

That is not the proper path though as explained clearly. The proper path is :

/usr/local/lib/php/RVSeagullMod/lib/SGL/FrontController.php

NiteWave 08-23-2010 06:43 PM

what's the include_path value in phpinfo() output?

UWH-David 08-23-2010 06:46 PM

include_path .:/usr/local/lsws/lsphp5/lib/php .:/usr/local/lsws/lsphp5/lib/php

Quote:

Originally Posted by NiteWave (Post 21119)
what's the include_path value in phpinfo() output?


NiteWave 08-23-2010 07:03 PM

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

UWH-David 08-23-2010 07:08 PM

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 (Post 21122)
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


UWH-David 08-23-2010 09:35 PM

?

.




.

NiteWave 08-24-2010 02:15 AM

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

ffeingol 08-24-2010 07:51 PM

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.


All times are GMT -7. The time now is 02:36 PM.