Я перепробовал и смог решить.
один трюк здесь:
to avoid error
(cannot open /include/cassandra.h (No such file or directory) configure: error: not supported. Driver version 2.7.0+ required (found ) ERROR: `/tmp/pear/temp/cassandra/configure --with-php-con
) is I executed all command at '/' directory not in home or any other directory.
###################
sudo git clone https://github.com/datastax/php-driver.git
cd php-driver/
git submodule update --init
sudo chmod -R 777 /php-driver/
cd ext
sudo ./install.sh
sudo phpize
sudo ./configure
sudo make install
После этого добавлен в php.ini
; DataStax PHP Driver for Apache Cassandra
extension=cassandra.so
Иперезапустил apache2 с помощью
sudo service apache2 restart
и проверил наличие php-модулей usnig
php -m //it reflects cassandra module