LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2010, 10:45 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
PHP unable to initialize module - Old Mod New PHP


Hi All,

Running SuSE 10

PHP apache MySQL etc Compiled from source and are latest versions available.

Everything working fine apart from this OLD module that I need to run and plugin to PHP but because its been compiled against an old version of PHP's module API... it won't allow it to start.

Is this going to be impossible to get running without downgrading PHP to the required version? OR is there a switch that might help e.g. which turns off the checking of the modules compiled API version number? (if that would be enough to do it)

Warning: PHP Startup: XXXXXXX: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0

Module is for PHP 5.2.0 and there's nothing else available to replace it (no newer module available). I'm running PHP 5.3.3 which of course is the latest version. Is there a way to get the module talking nicely with PHP? However all I have is the compiled XXXXX.so file, I don't have the code to re-build the module for the version of PHP.

Any ideas from anyone?
Thanks all

Last edited by helptonewbie; 11-30-2010 at 10:53 AM.
 
Old 11-30-2010, 11:26 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And just WHAT is this secret module w/o source? :}
 
Old 11-30-2010, 11:35 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
This:
Quote:
Originally Posted by helptonewbie
Everything working fine apart from this OLD module that I need to run and plugin to PHP but because its been compiled against an old version of PHP's module API... it won't allow it to start.
catches my eye. If you compiled it once, why can't you compile it again, against the new PHP??
 
Old 11-30-2010, 01:56 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by TB0ne View Post
This:

catches my eye. If you compiled it once, why can't you compile it again, against the new PHP??
Didn't say HE compiled it ;}

I have a suspicion (just googling for the exact error message he
posted) that it may have to do w/ MS-SQL ...


Cheers,
Tink
 
Old 12-01-2010, 01:40 PM   #5
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
HI Guys,

Thanks for the replies. No not something i've compiled, its provided by a 3rd party (payment gateway) which basically doesn't seem to be keeping up the module to the latest releases of PHP any more. For quick turn around we're mainly a PHP shop and I wondered if its possible to bypass the problem whilst still possibly using the latest PHP version and the module supports upto version 5.2.0.

So i've come up with a separate idea how to get round the issue but keep my servers on the latest PHP versions etc. I've just installed PHP 5.2.0 CLI ONLY and added the module into the php.ini for that version of PHP and it all works fine. Code on the Latest PHP version running on apache will be able to make a call to this older version of PHP and this module. Thus i think my problem for the short term is solved and longer term there's other ideas in the pipeline to solve completely which isn't PHP based.

PS- Yes I saw people having problem with MySQL but it wasn't exactly the same problem compared to this, those are more that they've upgraded and the MySQL mod didn't update as well or so on. They weren't looking to find out if its possible to bypass PHP's built in check that causes this stuff to not allow the module to be attached/initialised. There doesn't seem to be a "force" type parameter that will mean it should just try and work and see how to go on from there.

Thanks anyway,
Best Regards,
M
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 03:14 PM
PHP: Unable to initialize module leif_84 Programming 2 07-24-2007 01:46 PM
mysql mod for php alex2814 Linux - Software 0 08-16-2004 07:41 AM
PHP Warning: Unknown(): imap: Unable to initialize module dude4you Linux - Software 2 03-01-2004 11:19 AM
PHP unable to read .php files tuka Linux - Software 6 10-12-2003 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration