I am trying to install prebuilt binaries of Cassandra PHP driver on my windows xampp installation.
I downloaded the package from here https://pecl.php.net/package/cassandra.
I did the following;
php_cassandra.dll
to c:\xampp\php\ext\
extension=php_cassandra.dll
in php.ini
file in c:\xampp\php\php.ini
Now if I check with command php -m
, I can see that the Cassandra module is loaded but I cannot see it in phpinfo()
.
My doubt is where to place cassandra PHP files which I got from pecl (classes etc.) to this.
Now I am getting the error below;
"Fatal error: Uncaught Error: Class 'Cassandra' not found" if I run some php. Same code was working fine with Linux servers.
I understand that I need to add those Cassandra PHP files somewhere.
How do I go about this?
I got compatible version from here:
Datastax Cassandra Drivers: http://downloads.datastax.com/php-driver/windows/cassandra/v1.3.2/
Things to take care.
For me it was PHP v7.1, x86, MVC14, Thread Safety Enabled.
So the compatible version is cassandra-php-driver-1.3.2-7.1-ts-vc14-x86.zip
Now it is working perfectly fine. Just 4 steps required.