I downloaded the php_printer extension from http://downloads.php.net/pierre/ . But when i try to configure my php.ini file, a message pops-up saying that
PHP Startup: printer: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
I am using EasyPHP for Windows. The PHP version is 5.4.6 and that of Apache is 2.4.2
I went through other questions of similar kind but i am not server-admin or like so I don't have any idea of Command-Line PHP, and recompile things. Can anyone find me a good and easy solution to this.
PS: If the solution is not easy and i really have to recompile the PHP extension, please provide me with the steps how to do that on Windows.
Basically the extension was compiled to work with php 5.3, and you are trying to use it with 5.4
One solution is to downgrade EasyPHP to php 5.3 to make it work.
Related
I have a problem with pcntl installation. My PHP version is 5.4.4, I followed this tutorial:
http://cyberpunx.com/2011/11/pcntl-so-on-osx-lion-and-mamp/
But Pcntl does not load. In php error log I see:
[04-Sep-2012 22:58:16 UTC] PHP Warning: PHP Startup: pcntl: Unable to
initialize module Module compiled with module API=20090626 PHP
compiled with module API=20100525 These options need to match
How can I compile pcntl correctly? Thank you for your help!
The most likely scenario is that after the upgrade you forgot to update your php.ini to change the extension_dir.
If you have followed the tutorial to the letter, your extension_dir should be:
/usr/local/lib/php/extensions/no-debug-non-zts-20100525
Also, don't forget to restart Apache after your php.ini changes.
Finally, my solution was completely different. I removed MAMP and activated OSX built-in apache and installed MySQL.
This tutorial helped me a lot:
https://apple.stackexchange.com/questions/23751/how-to-turn-mac-os-x-lion-into-a-web-server
Then I followed this:
http://cyberpunx.com/2011/11/pcntl-so-on-osx-lion-and-mamp/
...and finally got pcntl working!
//EDIT:
another very easy solution is to download precompiled PHP for mac:
http://php-osx.liip.ch/
I am trying to connect MSSQL to PHP. i am following this tutorial. Anyway after i added the dll files as described in that tutorial, i get the following warning. How can i solve this ?
php starup sqlsrv unable to initialize module module compiled with module api=20090626 php compiled with module api=20020520 these options need to match
note:i have gone through this post but none helped.
Looks like you've tried to install the sqlsrv extension for php 5.3 on a php 5.2 system.
Either run <?php phpinfo(); ?> and look for the php version and look for the following entries:
PHP Version
Thread Safety
pick the appropriate .dll from the sqlsrv driver: the version number must match and if thread safety is enabled pick the ts version, if not pick the nts version.
For anyone trying to get it to work with PHP 5.5 (PHP compiled with module API=20121212) then you can replace the dlls in the ext folder with new updated binaries >here<
Don't forget to enable the new dlls in the php configuration.
In my case the issue was with multiple php version under an Apache. The php cli loaded another php version's php.ini. The takeaway is: always check the configuration before you dig deeper into the problem.
Actually I was using SDO_DAS_XML::create(); function in my php code and it requires php_sdo.dll. So I install it from net and save this at C:\xampplite\php\ext location after that I add this to my php.ini file. But it still not working even when I start apache from xampp it shows warning
PHP Startup: sdo: Unable to inilialize module. *Module compiled with module API =20060613. PHP compiled with module API=20090626.* These options need to match.`
Please help me how to add php_sdo with my xampp. I am using windows xp.
what i conclude from this post is that the dll file you downloaded might be compiled for a version of PHP older to the one you have..you can try this dll file as it's not giving me problem with PHP 5.3.1
I'm trying to connect to a DB2 databse from a windows machine using XAMPP.
When I try to load the php_ibm_db2 module I get the following error
"PHP Startup: ibm_db2: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match"
How do I fix this and connect to a db2 database?
This means you are trying to use an old (it seems : it's from 2006) version of the imb_db2 .dll file, with a recent (it's from 2009) version of PHP. You should use the same version for both PHP and the extension.
There is a recent version of some extensions .dll available from http://downloads.php.net/pierre/ ; amongst those, there is a couple of versions of php_ibm_db2.dll 1.8 ; with a bit of luck, maybe they'll match your version of PHP -- and there are versions for both PHP 5.2 and 5.3.
You have different "versions":
20060613
and
20090626
Did you compile these by yourself? Re-compile it.
The top answer got close but didn't have the right php_ibm_db2.dll I needed for PHP 5.3.2 VC9 (windows) NTS (non-thread-safe). But I found one that has it - and many more! Link:
PHP IBM DB2 DLLs on SourceForge via Technology Explorer for DB2
I wanted to try using SAPRFC dll along with PHP to retrieve data from SAP server at our company, but after downloading the latest version (1.4.1) from http://sourceforge.net/projects/saprfc/files/
Then, I added the dll files (php_saprfc_528.dll and php_saprfc_530.dll) to PHP extensions folder, then I updated php.ini file. When I start Apache server, the following error message shows to me
PHP Startup: saprfc: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20121212
These options need to match
Googling this issue, I found that that saprfc was compiled with another version of PHP not same as the one I'm using. I'm running PHP 5.5.9, so I started looking with saprfc dll file compatible with PHP 5.5, but I couldn't find.
Can anybody please provide the download for the php_saprfc.dll which will work with PHP 5.5, or what are the steps for compiling php_saprfc.dll that will make it compatible with PHP 5.5
Thanks
Compiled php module you can download here: https://sourceforge.net/projects/saprfcsapnwrfc/files/?source=navbar
Have you installed the RFC DLL on the system in question? At runtime the SAPRFC PHP module needs it - from the installation instructions (As you mentioned DLL I'm assuming you're using Windows):
For installation (from binary package):
PHP binaries (http://www.php.net/downloads.php)
librfc32.dll in Windows System directory (or SAPGUI installed)
You can obtain librfc32.dll from a system that has SAPGUI installed (check the Windows directory) or by installing the classic RFC SDK. For more information on that SDK, see note 27517 (SAP SMP login required).
Once you've done that and if the PHP module still doesn't work, then you can consider recompiling. See the instructions in that same installation guide for instructions. They do mention Visual C 6.0 though, which is rather old...