From: p d. t. <pdo...@an...> - 2005-01-19 10:15:44
|
David E. Meier wrote: >>>>i would also think safe_mode_include_dir might work; keep looking. might >>>>be related to ownership/permissions of the included dirs, who knows.... >>> >>> >>>After reading a "bug-report" ( ) >>>concerning the same matter I found out that the safe_mode_include_dir >>>variable only lets you read files from that directory. >> >>but isn't your problem that you can write (create) but not read? > > > I can upload files to the base directory and create folders in it. But > those folders are not displayed in the listing. All uploaded files and > created folders are owned by apache (wwwrun:wwwrun). The base dir is owned > by the webuser, that's why safe mode doesn't complain. Why? SM scripts are owned by the same user? Maybe re-think this. > I am pretty sure > that if I would see the created dirs I would not be able to upload content > to it due to that safe mode restriction warning, saying the subdir is not > owned by the script user. So why not change one or the other? > So in general I guess with PHP you cannot create directory trees unless > you turn safe mode off or the apache user and the script owner are the > same. The latter is a very common approach, even in virt hosting environments. You can also play with group ownership ala suggestions I've already made. - paul |