4.1.1 Build 3 -- include_path error?

DraCoola

Well-Known Member
#1
using this build since yesterday and were throwing out errors like these on wordpress and joomla (as far as i currently know) :

Warning: include_once() [function.include]: Failed opening 'Zend/Gdata.php' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/username-a/php') in /home/username-a/public_html/wp-content/plugins/WPSyndicator/Zend/Loader.php on line 146
Fatal error: Unknown: Failed opening required '/home/username-b/public_html/index.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/username-b/php') in Unknown on line 0
happened on most scripts, anyway.
which are suddenly asking for /home/username/php

i have done rebuild matching php (5.2.17) with LSAPI and continue with easyapache but still no luck.
and also done force reinstall lsws 4.1.1.
i am back to v4.1 for this moment in order to remove those errors.
 

mistwang

LiteSpeed Staff
#2
Can you please check phpinfo() page with 4.1 and 4.1.1, compare "include_path" configuration.
Also Please check Apache httpd.conf see if there is any configuration with value "/home/username/php". it has to come from somewhere, LSWS wont add something by itself.
 

DraCoola

Well-Known Member
#3
phpinfo() from 4.1 and 4.1.1 are using the same configuration from /usr/local/lib/php.ini
so they both are using the same :

Code:
include_path = ".:/usr/lib/php:/usr/local/lib/php"
i even replaced php.ini with php.ini from my another plain apache server (suphp) just to make sure.
and also search httpd.conf from "phpinidir" or any of "/home/username/php" entries but found nothing there.

downgrade from 4.1.1 to 4.1 just fix it self from this error include_path :confused:
 
Last edited:

DraCoola

Well-Known Member
#5
pm sent, george.
thanks before :)

by the way using 4.1 makes mod security on WHM cannot produce the logs.
but 4.1.1 does work for mod security logs on WHM interface.
unfortunatelly, 4.1.1 did php "include_path" errors.
 

mistwang

LiteSpeed Staff
#6
those bad include_path configuration is from
/usr/local/apache/conf/userdata/std/2/<domain>/cp_php_magic_include_path
Is there any WHM option to get rid of those files? Path configuration in those files are wrong.
 

DraCoola

Well-Known Member
#7
Glad that you are finally found the problem, george. Thank you for investigate.
So this means lsws below 4.1.1 doesn't read those include file from httpd.conf?
Because the file was on there since year 2010 :

Code:
-rw-r-----   1 root root   839 Dec 20  2010 cp_php_magic_include_path.conf
I don't have an idea about from where the conf files has created.
WHM does not have an option to remove those files.
But I will find that way somewhere from google.

So it is safe to just remove those bad files in order to use 4.1.1 without include_path errors?
 

mistwang

LiteSpeed Staff
#8
4.1 read configuration in section of
<IfModule concurrent_php.c>

while 4.1.1 read configuration in section of
<IfModule !concurrent_php.c>

php4_admin_value and php5_admin_value are ignored, so 4.1 does not set include_path.

Yes, I think it is safe to remove those files.
 

DraCoola

Well-Known Member
#9
So I have to mass remove for many files of cp_php_magic_include_path.conf from all of my servers.
Because most accounts are just have it while I grep that.

I hope can soon find for which software that has responsible for creating those files.
So I can disable that immediately.

Thank you for assist, george!
 
Last edited:

DraCoola

Well-Known Member
#11
-------------
UPDATE :
-------------

PEAR and it's php application packages can still use after disable Cpanel php magic.
But users must manually edit/add their script with :

Code:
ini_set("include_path", '/home/username/php:' . ini_get("include_path")  );
This will sometimes hard to explain to wordpress/joomla newbie-user that want to use *for an example* smtp mail function from their site.

Is there any possible way for lsws to not read Include "/usr/local/apache/conf/userdata/std/2/*.conf" on httpd.conf?
 

mistwang

LiteSpeed Staff
#12
Is there any possible way for lsws to not read Include "/usr/local/apache/conf/userdata/std/2/*.conf" on httpd.conf?
I think you can update cpanel vhost template, not to do that by default.
4.1 and earlier release does not apply include_path configuration in those files anyway, I think it is safe to remove all of them.
 
Top