I am using Apache2.4 and PHP 7.1.12
In php.ini file I had mentioned -
extension_dir = "ext"
It is throwing following error:
PHP Startup: mysqli: Unable to initialize module. Module compiled with module API=20151012 PHP compiled with module API=20160303
You are using mysqli module compiled for PHP 7.0 in PHP 7.1. As those versions have different APIs, it won't work. Obtain modules for PHP 7.1 - they usually come with PHP distribution.
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'm getting the below warning while adding the solr-client extinctions.
PHP Warning: PHP Startup: solr: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match in Unknown on line 0
can any one Please hep me out in this ?
PHP Warning: PHP Startup: solr: Unable to initialize module
1:Check extension_dir directive in php.ini. It should point to folder with 5.2 modules.
2:This is because PHP extensions are developped in C, and are "close" to the internals of PHP -- which means that, if the APIs of those internals change, the extension must be re-compiled, to use the new versions.
And, between PHP 5.2 and PHP 5.3, for what I remember, there have been some modifications in the internal data-structures used by the PHP engine -- which means extensions must be re-compiled, in order to match that new version of those data-structures.
How to update your PHP extensions will depend on which system you are using.
If you are on windows, you can find the .dll for some extensions here : http://downloads.php.net/pierre/
For more informations about the different versions, you can take a look at what's said on the left-sidebar of windows.php.net.
If you are on Linux, you must either :
Check what your distribution provides
Or use the pecl command, to re-download the sources of the extensions in question, and re-compile them.
I Upgraded PHP 5.2.8 to php 5.3.10, but php_memcache.dll(Memcache 2.2.6 VC9 x64 Thread Safe) is not getting enabled. I have tried many link.
http://downloads.php.net/pierre/
http://shikii.net/blog/installing-memcached-for-php-5-3-on-windows-7/,
WAMPSERVER php_memcache extension
http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/
Compiler version is MSVC6
and Architecture is x86.
I have php_memecache.dll in php/ext folder and in php.ini, it shows that memcached is enabled, but whenever i use, it throws the error.
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
Any idea,how can this issue be resolved?
I got the memcache dll from this link. and it worked well with php 5.3.10.
http://fixitwizkid.com/threads/installing-memcached-for-windows-on-apache-php-and-xenforo.8905/
I tried to find a simple way to upgrade PHP on my CentOS5 machine using yum instead of downloading the source and compiling it again myself (I did it last time, but it's really difficult to get all the compile configurations same as CentOS's default). Anyway, I finally use the methods listed here:
http://www.atomicorp.com/wiki/index.php/PHP
Now, the command php -v shows the version is already 5.2.11 (which I needed) , but it always contains many warnings like:
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
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
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
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
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
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
in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module
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
in Unknown on line 0
I think it basically means that I need to recompile these four modules, how could I do that? Any suggestions are appreciated.
This is really easy, you need to add more upto date yum repository and then upgrade.
one example is here.
cat >> /etc/yum.repos.d/utterramblings.repo <<END
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL5/i386/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
After this you would get latest versions of php and other extensions. It works!!
PHP is not installed all at once, it's modular. So you have things just like you listed that are designed for a different version of PHP. You will need to install all the plugins you are using for your implementation for the version of PHP you have installed.
Short answer, if you want a REALLY up to date PHP version, don't use CentOS. It's just a pain. CentOS is about stability, not cutting edge software. Use Ubuntu or Debian.
Long answer, your best option hands down is to compile from source or to find a repository that provides PHP 5.1.whatyouneed. I would advise against using a repository unless you are VERY sure that it comes from a reputable source.
If I was to do this I'd compile PHP from the source. Here is a link to get you started: http://www.wolflabs.org/2008/12/08/installing-php-from-source-on-centos-x86_64-w-apache/
You should grab the SRPM, replace the tarball, and rebuild it. You may want to grab the "extras" SRPM as well if you need anything from it.
here is repo configuration I've used to upgrade PHP on CentOS 5 (look for Enterprise Linux 5 in the text)
http://blog.famillecollet.com/pages/Config-en
Try
pecl install fileinfo readline memcache
And this should fix the problem.
pecl install memcache
Worked for me running Centos 5.5
I followed a CentOS wiki on how to upgrade PHP using a testing repository:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
I was getting errors for fileinfo and memcache, so I tried:
pecl install fileinfo memcache
...and all of the warnings vanished.