I have installed neo4j on aws and its running fine .I have set tcp 7474 to my ip and ssh is working fine . I can connect to aws from my mamp-PHP as I have added my-ip into security group .
If set I TCP/IP from Anywhere=0.0.0.0/0 ,I am unable to access it. HOw can I connect from shared-ip(cpanel-PHP) ?
I really appreciate any help.I am struggling with this from last 3 days.
<?php
$data2 ='CREATE (Person:Person {name:”test”}) RETURN Person';
$data2 = array("query" =>$data2);
$data_string = json_encode($data2);
$ch = curl_init('http://aws_ip:7474/db/data/cypher');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string))
);
$result = curl_exec($ch);
echo $result;
?>