Apache Cassandra Ubuntu 16
From DreamFactory
This allows you to use CassandraDB databases.
- Make sure you have all the required packages
-
$ sudo apt-get install php-dev php-pear libgmp-dev libpcre3-dev g++ make cmake libssl-dev openssl
-
- Download Datastax C++ Driver
-
wget http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies/libuv/v1.11.0/libuv_1.11.0-1_amd64.deb
-
wget http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies/libuv/v1.11.0/libuv-dev_1.11.0-1_amd64.deb
-
wget http://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra/v2.6.0/cassandra-cpp-driver_2.6.0-1_amd64.deb
-
wget http://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra/v2.6.0/cassandra-cpp-driver-dev_2.6.0-1_amd64.deb
-
- Install the Datastax C++ Driver
-
sudo dpkg -i libuv_1.11.0-1_amd64.deb
-
sudo dpkg -i libuv-dev_1.11.0-1_amd64.deb
-
sudo dpkg -i cassandra-cpp-driver_2.6.0-1_amd64.deb
-
sudo dpkg -i cassandra-cpp-driver-dev_2.6.0-1_amd64.deb
-
- Install from PECL
-
$ sudo pecl install cassandra-1.2.2
-
- Create the ini file
-
$ sudo sh -c 'echo "extension=cassandra.so" > /etc/php/7.0/mods-available/cassandra.ini'
-
- Enable the extension
-
$ sudo phpenmod cassandra
-
- Restart your webserver app and/or php-fpm