I've been trying to add the oci8 extension to PHP but when I try to see if everything is ok, running the php command in the console I have this error:
PHP Warning: PHP Startup: oci8: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
Can you help me? I have OSX 10.9.4
So what I did to solve this problem was compiled oci8 library on my mac in order to have the same number of API:
pear download pecl/oci8
tar xvzf oci8-1.4.5.tgz
cd oci8-1.4.5
phpize
./configure --with-oci8=shared,instantclient,/usr/local/lib
make all install
I also followed the instructions on this site: github
Related
I am trying to compile the gmp for lampp suite with php 7.1.7 with api version 20160303 .
I downloaded gmp-6.1.2.tar.bz2 used bzip2 -dk gmp-6.1.2.tar.bz2 to get tar file then tar -xvvf gmp-6.1.2.tar then cd gmp-6.1.2/.
When i run /opt/lampp/bin/phpize (i am using lampp suite for dev),
I got this
Cannot find config.m4.
Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module
I am trying to compile gmp for php7.1.7.
Without running /opt/lampp/bin/phpize, and following these steps ./configuremake make testmake install
Its all compiling without any error with api version 20151012 but my php say its needs 20160303
Running php on console, I am getting this:
PHP Warning: PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0
Warning: PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0
based on your comments, in order to compile a specific version of GMP extension, you will need to clone the PHP-SRC repository, and compile the PHP GMP extension.
git clone git#github.com:php/php-src.git
you may clone a the targeted branch rather that cloning the whole repository
git clone -b PHP-7.1.7 git#github.com:php/php-src.git --depth 1
then go to the GMP extension directory & phpize the extension and complete your compilation steps.
cd php-src/ext/gmp
phpize
./configure
make
sudo make install
php -i | findstr "Thread"
PHP Warning: PHP Startup: v8js: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
Thread Safety => enabled
You have installed the wrong version of the extension. You need the version that is compiled with API 20131226. So you have to search for the correct version and install them. Then is should work.
https://github.com/terrylinooo/v8js-dll
here you can see the versions that are included. So normally if you have used the correct version it should be correct.
I need to install SSH2 to my PHP5.6. So as I read this accepted answer I downloaded zip from here then coppied php_ssh2.dll and php_ssh2.pdb to php/ext and libssh2.dll to Windows/system32. And after Apache restart and SSH2 call it throws me this error:
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20131226
These options need to match
How can I solve it? Thanks you.
I believe I have an issue with my PHP installation
When I type php into the command line, i get the following
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Can anyone advise?
I tried this - http://jason.pureconcepts.net/2014/11/install-apache-php-mysql-mac-os-x-yosemite/
As the author of that post, the issue is with the previously compiled modules pdo_pgsql and pgsql.
As noted in the comments, you will need to reinstall these modules for the Yosemite's of PHP (run php -v).
Steps for doing so with these specific modules has been answered already.
I just had the same issue and I don't use Postgres so I really didn't care for installing PEAR and then autoconfig, etc.
So I found that you can simply comment out those extensions in php.ini
To find the ini file location:
php -i | grep php.ini
And then comment out the above 2 extensions in the ini file. Mine was located at: /Library/Server/Web/Config/php/php.ini
i'm trying to install memcache module from http://pecl.php.net/package/memcache. Im using xampp in ubuntu (lampp) with php 5.3. After download the extension, I run phpize, make and make install, then I add extension=memcache.so in my php.ini but when I restart xampp the following message appears:
Warning: PHP Startup: memcache: 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
Anyone have any ideia on what happening?
Thanks
5.3 Is known to give problems. Go back to 5.2.3.
Does this http://bugs.php.net/bug.php?id=42187 answer your question?