No, I don't have the open_basedir configured. It is currently commented
out.
Tim
Carlos A. Benavente wrote:
Not 100% sure, but this may be due to an open_basedir restriction? Do
you have this directive set?
I ran into a similar problem with *uploading* files via http and the
move_uploaded_file function, still can't write/create new files though,
and one thing I learned is that if you have the open_basedir set to, say
"./", and want to upload files, that you should also specify a /tmp
directory on your php.ini's file_upload_dir directive.
When you upload files with the move_uploaded_file function, it first
creates a temp file on your /tmp directory and then moves it to the
final target path. Now if you are opening a file for write, not sure if
the file is copied 1st to the /tmp directory, it gets modified, and then
moved to its final destination. If the latter is the case, then you may
want set additional php_admin_value open_basedir values and include /tmp
Hope this makes sense.
Carlos
Tim McGeary wrote:
After getting all of my modules finally seen dynamically, I'm trying
to install three different PHP applications, and all of them are
complaining that they cannot write to files.
They are all owned by apache.apache so the webserver has ownership,
and I have tried permissions from 644 to 777 with no luck whatsoever.
I confirmed that /etc/php.ini does NOT have safe_mode turned on, but I
cannot figure out what other setting or installation issue would be
causing these PHP installation scripts to be unable to write.
Any ideas?
Thanks,
Tim
begin:vcard
fn:Tim McGeary
n:McGeary;Tim
org:Lehigh University;LTS - Library Collections and Systems
adr;dom:;;;Bethlehem;PA;18015
email;internet:tim.mcgeary@xxxxxxxxxx
title:Senior Systems Specialist
tel;work:610-758-4998
version:2.1
end:vcard
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]