Memcache not working on PHP 5.3.10 - php

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/

Related

Missing php_ssh2.dll extension for php 7.2 (windows)

Today I wanted to update my dev machine with new php so i downloaded and set up PHP 7.2.7 x64.
After that I sterted collecting missing modules and everything goes fine till i came to the last one: php_ssh2.dll.
Downloaded latest version 1.1.2 from https://pecl.php.net/package/ssh2
Unfortunately it doesn't work. Error:
Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20160303
PHP compiled with module API=20170718
These options need to match
Anyone have any tips for me how to make it work?
I have compiled SSH2 module for PHP 7.2 (and PHP 7.3) on Windows. It is available at https://github.com/nufue/pecl-ssh2-windows
On Windows, PHP 7.2.x is built using VC15 and the latest SSH2 module is v1.1.2 which was built on VC14.
So you need to either downgrade to PHP 7.1.x or wait for the PHP team to compile SSH2 in VC15.
Additionally, I have no experience with this but you could decide to compile it yourself in VC15 if you are comfortable with that sort of thing.
Update:
SSH 1.1.2 now has a VC15 build at https://windows.php.net/downloads/pecl/releases/ssh2/1.1.2/
The latest SSH is 1.2 which currently has PHP 7.1-7.4 builds: https://windows.php.net/downloads/pecl/releases/ssh2/1.2/

Datastax Cassandra PHP extension in WAMP

I am using WAMP with php v5.5.12.
Trying to install datastax php driver(https://github.com/datastax/php-driver).
1. I take the compiled dll file from here and put it in /ext folder
2. Add the extention=php_cassandra.dll to php.ini
3. Restarting WAMP server
I get this error in wamp php error log:
[28-Jan-2016 07:32:57 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_cassandra.dll' - The specified module could not be found.
Also installed Pear package, but there are no changes.
Does anyone here experience with cassandra new driver on windows?
What can be the problem?
I could not either make the .dll found on the pecl php site work. Same error.
But the .dll found here works!
http://downloads.datastax.com/php-driver/windows/cassandra/
You will need to use the Thread Safe version (TS) and of course the one for PHP5.5. Also you need to use the x86 if you WAMPServer is the 32 bit and the x64 if WAMPServer is the 64bit version
That dll should be place into the \wamp\bin\php\php5.5.12\ext folder

Installing php_imagick.dll PHP extension on wampserver 2.2

I am on Windows 7 on a 32-bit OS.
I installed ImageMagick-6.8.7-Q16 from Link and I was able to run ImageMagick from command line ("convert" command).
Then I downloaded the VC9 version of php_imagick.dll from http://pecl.php.net/package/imagick/3.1.2/windows.
I placed in the PHP extension directory. I tried both NTS and TS however they recommended TS.
Then I made changes to php.ini file but the extension wouldn't load. In apache error log it says:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - The specified module could not be found.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - The specified module could not be found.
in <b>Unknown</b> on line <b>0</b><br />
I am using wamp server 2.2 which is compiled using VC9 as well. I want to use Imagick functions in PHP scripts.
Any help with fixing this issue is highly appreciated.
I had this same problem, here is my configuration:
Windows 8.1 64Bit
PHP 5.4 (Thread Safe)
Apache 2.2
I tried to install the Latest Version of ImageMagick but its fail to load and I solved by installing the following version (6.7.7-5-Q16 32bit) and its worked fine with http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ImageMagick-6.7.7-5-Q16-windows-dll.exe.
after install download imagick dll from the link (imagick 3.1.2 Thread Safe )
http://pecl.php.net/package/imagick/3.1.2/windows
after restarted apache and start working
Ok, try the Q8 version php_imagick-3.1.2-5.3-ts-vc9-x86.zip
Yes, it has to be the TS (Thread Safe) version as Apache and PHP are compiled TS in the WAMPServer system.
Also the php_imagick.dll is delivered as part of the Imagick download, look in the unzipped file structure for it. Copy that to the /ext folder, not the PECL one.
Running ImageMagick on XAMPP 1.8.3 with Windows 7
Install details copied:
ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll (here)
Imagick DLL: PHP 5.5.x version from http://www.peewit.fr/imagick/

saprfc extension for php is not working

I am a SAP-ABAP begginer and I need to fetch the data from SAP through PHP for my company need.
I have installe:
WAMP Version 2.2
Apache Version : 2.2.22
PHP Version : 5.3.13
SAPRFC Version is 1.4.1
Added php_saprfc_530.dll to the php ext directory and added extension to php.ini
On restart of Apache, application event reported this error:
PHP Startup: saprfc: Unable to initialize module Module compiled with build ID=API20090626,TS PHP compiled with build ID=API20090626,TS,VC6
I have been struggling with this error for the past two days. How can I fix it?

PHP Startup: unable to initialize module

i'm trying to install mongoDB in my system. As instructed in
http://www.mongodb.org/display/DOCS/PHP+Language+Center,
I downloaded php_mongo.dll and put it in ../php5.3.0/ext folder. Then I added extension=php_mongo.dll to php.ini. When I restarted WAMP, I got the following errors:
PHP Startup: unable to load dynamic library php5.3.0/ext/php_gd2.dll
and the same error for
php_mbstring.dll,php_mysql.dll,php_mysqli.dll,php_pdo_mysql.dll,php_pdo_sqlite.dll.
After that, I got another error:
PHP Startup: Mongo: Unable to initialize module
Module compiled with build ID=API20090626, TS, VC9
PHP compiled with build ID=API20090626, TS, VC6.
These options need to match.
After some reading up from the net, I realize that I have to change the compiler for PHP. Does anyone know on how to update php compiler VC6 to php compiler VC9?
My Apache version 2.2.11
PHP version 5.3.0
thank you
http://windows.php.net/download/
Download the zip file for VC9 x86 Thread Safe (which is for PHP run as Apache module).
Extract the contents of the zip somewhere
Stop apache
Backup the php.ini file you have in your current PHP directory ../php5.3.0/
Delete (or backup) the rest of the contents you have in ../php5.3.0/
Place the extracted content in ../php5.3.0/
Put php_mongodb.dll in ../php5.3.0/ext/
Put php.ini back also
Restart Apache
edit:
Sorry, I forgot to mention that you also need to replace your apache install with the one from apachelounge as well, and have Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed, as per the remarks in "Which version do I choose?" on the same page http://windows.php.net/download/
For time being, check which module is in warning message, just go to php.ini file and comment it. This could work

Categories