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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Compiling PHP Pecl extensions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2009, 04:41 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Default Compiling PHP Pecl extensions

Hi folks

I have LS enterprise running on CentOS. We're using PHP v 5.2.9 built from the LS console to run on LSSAPI.

I'm trying to build a PHP PECL extension, but it wont load - the stderr log says:

Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match

I ran the version of pecl in .../lsws/lsphp5/bin/

My sysadmin skills are pretty basic, and I can't figure out what else to try.

I'd be very grateful for suggestions...
Reply With Quote
  #2  
Old 06-24-2009, 03:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Check if the PHP PECL extension that lsphp5 tries to load is the one newly built, or one the built earlier for another version of PHP.

Another choice to upgrade your system level PHP installation to PHP 5.2.9, so it wont produce a PHP PECL extension with wrong API version.
Reply With Quote
  #3  
Old 06-25-2009, 03:35 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Hi mistwang

Thanks for the suggestions

This is the first time I've built this extension - that can't be it.

So I'll try your idea of upgrading the system level PHP - even though I'm running the LS version of pecl, I guess it must be using system level libraries for the compile.
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 01:59 AM.



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