Datastax Cassandra PHP extension in WAMP - php

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

Related

How do I fix "PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb' "

I am trying to install and set up mongodb with a laravel application for the first time. I read that I have to install the extension and libraries but after I do that I get the above error when I try to execute a php command in the terminal.
I am running windows 10 x64 and PHP 7.3.1.
First of all I installed the mongodb from the official mongodb site
I got the latest mongodb dll from https://pecl.php.net/package/mongodb/1.6.0/windows
I extracted the dll into the c:/xampp/php/ext folder according to the instructions and restarted the server.
I also included the extension = php_mongodb.dll in the php.ini file
This is what I get...
I found a similar post on here PHP unable to load dynamic library (mongo.so) that could have solved my problem but that solution is for users on mac and I am on windows.
I'm answering my own question here. Turns out my xampp version was x86 and so x64 version of the dll would obviously not work... Solution was to just use x86 version of the dll instead.

Issue Running Imagick module (PHP 5.3.5, WAMP server 2.1e)

I have installed Wamp server 2.1e-32bit and ImageMagick-6.8.9-7-Q16-x86-dll in Windows Server 2008 R2-x64. After completed my installation process and run wamp server, i get a error message and Imagick not working
The error msg is:
"PHP Warning: PHP Startup: imagick: 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 in Unknown on line 0"
How to resolve the problem?
Try the 64-bit DLL since you are running on Windows Server 2008 R2-x64 as recommended by the doc.
UPDATE:
If you don't already have the php_imagick.dll extension, you can download it from here. In your case, you will pick the php 5.3 Thread Safe (TS) x86 version. The caveat here is I am unsure if this will work with the latest imagemagick Q16 DLL.
Copy the php_imagick.dll file to your PHP ext folder, and update your php.ini to include extension=php_imagick.dll. Then restart your WAMP server.
Run phpinfo() to ensure the imagick library is loaded properly.

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/

php_redis.dll not working in windows

I tried both the files from here: https://github.com/nicolasff/phpredis/downloads. I am using 64bit wampserver on windows 7 professional. It looks like apache is trying to load the file but somehow could not recognize it properly. This is what I see in the error log:
PHP Startup: Unable to load dynamic library
'D:/wamp/bin/php/php5.3.13/ext/php_redis.dll' - %1 is not a valid
Win32 application.
Anyone faced similar issues? Do we have a working solution for this?
Just in case it can help someone, I managed to solve the error on PHP 7.1.12 installing the 32 bits DLL.
I was getting the error:
Warning: PHP Startup: Unable to load dynamic library '.../php_redis.dll'
not a valid Win32 application
But after installing the 32 bits version, the warning disappeared.
To know which architecture of XAMPP/WAMP are you using, visit the phpinfo() and look for the value "Architecture", it was for me on the fourth row, and as expected is had the value x86.
I had to check the Server API from phpinfo() to decide which version to use
If It's
Apache 2.0 Handler(mod_php) go with Thread Safe version
If It's CGI go with Non Thread Safe version
Unfortunately I do not run 64-bit version of PHP to test this, but for PHP 5.3 you can try this dll.
Dll from https://github.com/nicolasff/phpredis/downloads ( php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip ), is working fine with PHP 5.2.17 (32-bit version).
I hope you will solve the problem.
I used XAMPP x86 / PHP 7.2.5 so I needed redis x86 and the directory is this: C:/xampp/php/ext/.
https://pecl.php.net/package/redis/4.1.0/windows
I'll add my ansewer to the table :
I used those dlls for my AMPPS server (WAMP should be the same) under windows 8 with PHP 5.5:
https://pecl.php.net/package/redis/2.2.7/windows
following this tutorial
https://www.linkedin.com/pulse/using-redis-windows-php-shekhar-joshi
I had same issue for 64 bit windows 7 wampserver with PHP5.5.12
and worked for me from below link dll binaries of Redis
http://windows.php.net/downloads/pecl/releases/redis/2.2.7/
I had the same case, I was installing wamp 32bit, but I imported the library in 64bit however I had to imorted the 32bit version.
Check in the task manager which version of wamp you are using!
For me the reason was version of Redis PHP extension that I've been used.
xampp architecture: x64
php version: 7.4
php type: ts (thread safe)
redis version installed on windows: 3.0.504
and finally the version of Redis PHP extension that worked for me was:
for php 7.4
latest stable version: php_redis-5.3.4-7.4-ts-vc15-x64
I downloaded it from this Link

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