At 04:59 PM 12/14/2004 -0800, Brion Vibber wrote:
On Dec 14, 2004, at 4:41 PM, Erik Hermansen wrote:
After I installed 1.4, it wrote files in
"\tmp" prefixed with
"sess_". They contained mediawiki login names and maybe a few other things.
This might just be how PHP stores session variables--not sure.
That's just how PHP stores session variables. You can change the directory
in php.ini. (If using memcached, we also have a module to store sessions
in memcached.) PHP's safe_mode, open_basedir etc settings should not
affect session files as far as I know (and should thus be a good way to
keep one user's scripts from snarfing another's session files).
Interesting.
PHP may also store uploaded files temporarily in /tmp,
again this is
configurable in php.ini. I'm less sure about whether open_basedir would
affect it.
I've taken a quick grep through 1.4, and the only place I see /tmp being
explicitly used outside of the test suites is in diff merging, where it
tries to shell out to diff3.
None of this should trigger on an include statement in the installer...
I've conferred with another guy that works on the site, and his experience
with some other software on the same server matches mine. We have some
kind of intermittent file permissions problem that began after this big
update of our server management software (Plesk 7). The symptom is that
when PHP creates a file, sometimes the owner of the file won't be given
permissions. Whether or not the PHP-created file gets correct permissions
seems to be random. Knowing this, it explains why the 1.3 installation
didn't work. The template file was created by mediawiki, and for some
@!@#! reason the permissions for the owner to read/write were not set when
the file was created. I'm not going to throw this burden on the list since
it isn't a problem specific to mediawiki. But it does explain why 1.3
wouldn't work for me and some other problems I'm having in 1.4 that I
haven't described on the list.
It seems possible to me that this same file permissions problem is a cause
of the open_basedir warnings coming up during 1.4 installation, but I'm not
sure. I don't recommend troubleshooting that any further until I can fix
this irritating not-mediawiki-related problem which might be
responsible. If the warnings are still there after that, then maybe it is
worth looking into further.
-Erik