phpcassandradatastax-php-driver

cassandra module of php does not seem in phpinfo


i tried to use cassandra php driver

after i follow installation steps, i have an error:

Fatal error: Class 'Cassandra' not found in /var/www/web/xx/yy.php.....

Cassandra module seems with php -m

php -m command result

But in phpinfo, it does not seem as a module.

what should i do to fix it ?

notes: op system : ubuntu, php version : 5.5, cassandra.so file exits is right path, php.ini file is updated with cassandra.so file path. php5-fpm restarted


Solution

  • On typical installations there are separate php configuration files for CLI and http module. So it might be that it is only enabled for CLI mode (which you use with the output of php -m), whilst it is not loaded when php is used as module inside your http server.

    You want to check the configuration file php.ini. The call to phpinfo(); will show you the path which configuration file is loaded.