OK, I've banged my head on this one long enough, now time to admit my ignorance :-)
I created a new account on cpanel32b: user "y". For some reason, "y" is unable to create sessions with php using /tmp as the temp. dir. I get permission issue as shown here:
If I override with a php.ini in that directory containing:
then it works. But I don't understand. My other user on the same server, "x", is able to do this operation fine and the perms on /tmp seem equal to both (777).
There are no .htaccess files in the public_html or current directories either. I'm stuck--I have a workaround but I don't want to use it. I don't want to manage my own temp space when it should be available in /.
All the help I've seen on gallery and from google say that /tmp permissions are insufficient. However, I've verified above that both accounts see 777 with a `df -ld /tmp` Additionally, I've tried inserting some test lines into the session_test.php file:
And both "/tmp" and "/home/y/tmp" as prefixes (i.e. arg1) to tempnam WORK--i.e. the test file is written and read successfully.
Any clues? What am I missing or is this a trouble ticket issue?
thanks
Brett
I created a new account on cpanel32b: user "y". For some reason, "y" is unable to create sessions with php using /tmp as the temp. dir. I get permission issue as shown here:
Warning: session_start(): open(/tmp/sess_RANDCHARSTRING, O_RDWR) failed: Permission denied (13) in /home/y/public_html/modules/gallery/setup/session_test.php on line 30
session.save_path = "/home/y/tmp"
There are no .htaccess files in the public_html or current directories either. I'm stuck--I have a workaround but I don't want to use it. I don't want to manage my own temp space when it should be available in /.
All the help I've seen on gallery and from google say that /tmp permissions are insufficient. However, I've verified above that both accounts see 777 with a `df -ld /tmp` Additionally, I've tried inserting some test lines into the session_test.php file:
<?php
$sourcefile = tempnam("/tmp", "test");
echo "$sourcefile <br>";
$handle = fopen($sourcefile, "w");
echo "handle is $handle <br>";
$r = fwrite($handle, "testing");
echo "fwrite ret $r <br>";
$r = fclose($handle);
echo "fclose ret $r <br>";
$fd = fopen($sourcefile, "r");
echo "fd is $fd<br>";
$contents = fread($fd, filesize($sourcefile));
fclose($fd);
echo "$contents<br>";
?>
$sourcefile = tempnam("/tmp", "test");
echo "$sourcefile <br>";
$handle = fopen($sourcefile, "w");
echo "handle is $handle <br>";
$r = fwrite($handle, "testing");
echo "fwrite ret $r <br>";
$r = fclose($handle);
echo "fclose ret $r <br>";
$fd = fopen($sourcefile, "r");
echo "fd is $fd<br>";
$contents = fread($fd, filesize($sourcefile));
fclose($fd);
echo "$contents<br>";
?>
Any clues? What am I missing or is this a trouble ticket issue?
thanks
Brett
Comment