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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Various Post Installation Questions

Reply
 
Thread Tools Display Modes
  #11  
Old 12-31-2008, 03:27 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just upgrade our cPanel test server to 5.2.8 with similar configuration, then build matching PHP binary, seems lsphp5 works with the PDO modules built by ezapache. at least when we try "lsws/fcgi-bin/lsphp5 -i", there is no error message and PDO modules loaded successfully.

Does it show errors only when PDO being actively used by a PHP script?
Reply With Quote
  #12  
Old 12-31-2008, 04:53 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Well on the phpinfo PDO does not actually load the modules.

The modules sitting in the extension directory are from ezapache and from my test they were not actually loading. You should see something like this if they are loaded properly:

Code:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep pdo
(configure line here)
pdo_mysql
pdo_sqlite
PECL Module version => (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.3 2007/12/31 07:20:10 sebastian Exp $
I'm not sure on the error messages that litespeed was seeing but since PDO was not actually loading. I grabbed the pdo modules from the php source folders modules folder from the php build. I dropped them into the extension directory for php.

Now this solved litespeed but then the CLI version from cPanel has errors which I assume are the same that litespeed had. Here's the errors that it encounters:

Code:
[31-Dec-2008 12:06:52] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so: undefined symbol: executor_globals in Unknown on line 0
[31-Dec-2008 12:06:52] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so: undefined symbol: executor_globals in Unknown on line 0
[31-Dec-2008 12:06:52] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so: undefined symbol: executor_globals in Unknown on line 0
[31-Dec-2008 12:06:52] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so: undefined symbol: core_globals in Unknown on line 0
I have no idea why it happens. But I've had it happen on each machine I've ran litespeed on.
Reply With Quote
  #13  
Old 12-31-2008, 07:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
which version of apache are you using? suphp? mod_php?
There must be something different in the way how PHP was compiled.
We use Apache 2.2 with mod_php.
Reply With Quote
  #14  
Old 12-31-2008, 08:30 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
These machines previousy had Apache 2.2.11 and suPHP.
Reply With Quote
  #15  
Old 01-02-2009, 09:16 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Okay I just did a fourth machine and well here's an interesting one LiteSpeed's PHP was able to load PDO. I'm officially very confused considering all these machines were almost identical in every way.
Reply With Quote
  #16  
Old 01-02-2009, 04:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Must be something different. Maybe cPanel ezapache update some parameter recently.
If you would like to find out why, you can try a fresh rebuild of Apache/PHP on those servers with those problem, then build matching PHP.

I am experiment with suphp option now.
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 11:21 PM.



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