I get a generic server error on Azure fastCGI on accessing a blob storage.
The error is: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
Below is the code. This code runs fine in local tests and all files uploaded on Azure as content work fine.
Can anyone please tell me how to debug and view the actual errors?
<pre><?php
error_reporting(E_ALL);
header('Content-type: text/html');
echo 'C2, Start';
require_once('Microsoft/WindowsAzure/Storage/Blob.php');
$client = new Microsoft_WindowsAzure_Storage_Blob(
"blob.core.windows.net",
"xxxxxxxxxx",
"yyyyyyyyyyyyyyy=="
);
$filename= getcwd() . '\folders.txt';
echo $filename . '<br>';
if ($client) {
$client->getBlob('setup', 'folders.txt', $filename);
echo 'Blob Load ok! <br>';
} else {
echo 'Blob Storage Error <br>';
}
echo ', END';
?></code>
thanks.