Re: How to connect to cassandra database using php

369 views
Skip to first unread message

Michael Penick

unread,
Jan 16, 2018, 8:14:30 AM1/16/18
to php-dri...@lists.datastax.com
Depending on your web server there should be an error log somewhere.

If using Apache the log would be located in the following location on Ubuntu systems: /var/log/apache2/error.log

An easier way to debug could be to use the PHP command-line (Ubuntu package name: php-cli) then you would see an immediate error in the console:

$ php some_script.php

Mike



On Mon, Jan 15, 2018 at 9:40 AM, avdhoot mukhedkar <avdhootm...@gmail.com> wrote:
Hi.I am new to cassandra.I am currently using ubuntu 16.04LTS,php 7.0,apache2,cassandra 3.11.1.I have installed cassandra and its working normally from terminal.I have installed the php-driver as per datastax instructions but webserver returns blank screen on executing cassandra::cluster(); or any cassandra related statement.Please find the attached images .Please help me!Thanks.

--
You received this message because you are subscribed to the Google Groups "DataStax PHP Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-driver-user+unsubscribe@lists.datastax.com.

Message has been deleted

avdhoot mukhedkar

unread,
Jan 18, 2018, 6:09:22 AM1/18/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Thanks for help

Mukundan t

unread,
Feb 13, 2018, 1:24:17 AM2/13/18
to php-dri...@lists.datastax.com
Dear Mike,
when I tried to insert the date function "toUnixTimestamp(now())" along with other params in .bind(params). I am getting the below error
com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [timestamp <-> java.lang.String]
is there any solution to insert the date function in bind(params) .But if I individually use the date function in a insert query, it is working fine


--
Keep Hope in God and Yourself

Mukundan.T
Reply all
Reply to author
Forward
0 new messages