Apache Cassandra Ubuntu 16
From DreamFactory
This allows you to use CassandraDB databases.
- The version of php-mongodb in the APT repositories is no longer high enough to satisfy the requirements of the mongodb repos used. Please install using PECL.
- Make sure you have all the required packages
- <source lang="bash">$ sudo apt-get install php-dev libgmp-dev libpcre3-dev g++ make cmake libssl-dev openssl</source>
- Download Datastax C++ Driver
- <source lang="bash">wget </source>
- <source lang="bash">wget </source>
- <source lang="bash">wget </source>
- <source lang="bash">wget </source>
- Install the Datastax C++ Driver
- <source lang="bash">sudo dpkg -i </source>
- <source lang="bash">sudo dpkg -i </source>
- <source lang="bash">sudo dpkg -i </source>
- <source lang="bash">sudo dpkg -i </source>
- Install from PECL
- <source lang="bash">$ sudo pecl install cassandra</source>
- Create the ini file
- <source lang="bash">$ sudo sh -c 'echo "extension=cassandra.so" > /etc/php/7.0/mods-available/cassandra.ini'</source>
- Enable the extension
- <source lang="bash">$ sudo phpenmod cassandra</source>
- Restart your webserver app and/or php-fpm