[BlueOnyx:16617] Help with permissions please :)
Colin Jack
colin at mainline.uk
Thu Dec 4 12:01:44 -05 2014
We have a client with two vsites on one of our 5208R VPS.
They want to use a script on one site to automatically 'pull' data from the 2nd site:
They have written a small test script for me:
<?php
// Get cURL resource
$curl = curl_init();
// Set some options
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://www.domain.com'
));
// Send the request & save response to $resp
$resp = curl_exec($curl);
// Close request to clear up some resources
curl_close($curl);
// Dump response
var_dump($resp);
If I put any URL in the CURLOPT_URL that isn't on that server (e.g. http://bbc.co.uk) then it pulls the data fine.
If I put in the URL of the real site (which is on the same vhost) then it fails - hangs for a while and then displays " bool(false)"
Nothing in the message log or httpd/error_log
Seems like a permissions thing but not sure where to go from here!
Many thanks
Colin
More information about the Blueonyx
mailing list