[SOLVED] PHP unable to initialize module - Old Mod New PHP
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
Last edited by helptonewbie; 11-30-2010 at 11:53 AM.
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.