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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 4.1.1 Build 3 -- include_path error?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2011, 10:11 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Default 4.1.1 Build 3 -- include_path error?

using this build since yesterday and were throwing out errors like these on wordpress and joomla (as far as i currently know) :

Quote:
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
Quote:
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.
Reply With Quote
  #2  
Old 06-23-2011, 11:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #3  
Old 06-23-2011, 12:26 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
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

Last edited by DraCoola; 06-23-2011 at 12:28 PM..
Reply With Quote
  #4  
Old 06-23-2011, 01:28 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
maybe we need to login and take a look.
Reply With Quote
  #5  
Old 06-24-2011, 09:57 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
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.
Reply With Quote
  #6  
Old 06-24-2011, 02:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #7  
Old 06-25-2011, 09:32 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
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?
Reply With Quote
  #8  
Old 06-25-2011, 01:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #9  
Old 06-25-2011, 01:35 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
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 by DraCoola; 06-25-2011 at 01:38 PM..
Reply With Quote
  #10  
Old 06-25-2011, 02:27 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Just found from Cpanel forum :

--->> https://forums.cpanel.net/f5/fatal-e...tml#post552541


It will remove all of cp_php_magic_include_path.conf that has created by php magic from Cpanel.
But I thought that will disabling PEAR too
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 02:18 AM.



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