First check to see where the temporary file is (absolute path to it).
Then write a simple PHP that uses is_readable to test every directory
from / all the way to the file in question. When the test fails,
you've found the source of your permission error.
Here's a PHP script for you:
<?PHP
$tryPath='/tmp/test/example/things/stuff/dude/junk.txt';
$dirnames=explode('/',$tryPath);
$builtPath='';
foreach($dirnames as $dirname) {
$buildPath.='/'.$dirname;
$buildPath=preg_replace('!//!','/',$buildPath);
echo "<br>Can I read $buildPath? ";
if(!is_readable($buildPath))
die("No, cannot read $buildPath, quitting.");
echo "Yes.\n";
}
?>
On Jun 5, 9:49 am, ff8mania <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've successfully installed Apache 2 and Php 5, and I'm trying Google
> SSO (PHP) demo, but I'm in trouble with it.
>
> When I click on "Generate SAML Response" button (in the right side of
> the page) I receive this error:
>
> Warning: fopen(saml-response-
> okoaiegcbehfnlenhlhmdoigigfkgpmfklgcpnfb.xml) [function.fopen]: failed
> to open stream: Permission denied in /var/www/SAMLTestTool/
> process_response.php on line 94
> Cannot open temporary file (saml-response-
> okoaiegcbehfnlenhlhmdoigigfkgpmfklgcpnfb.xml)
>
> I've set permission of all file to 777, but this don't resolve my
> problem.
>
> What can I do?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---