rkumar Posted February 26, 2007 Share Posted February 26, 2007 I am not able to write to a directory who permissions are 755 with the php script. And the only way to write to that directory is via changing the mod to 777. and i believe that is not a secure option. Do you know how can write to a directory with permission 755. Actually i am uploading the images to that. Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/ Share on other sites More sharing options...
Archadian Posted February 26, 2007 Share Posted February 26, 2007 make sure IUSR_%machinename% has full access rights to that directory Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194259 Share on other sites More sharing options...
rkumar Posted February 26, 2007 Author Share Posted February 26, 2007 Can you tell me that in details i have dedicated server Fedora core 4 + Apache Like if i make a directory with script with 755 permission it works well. If i make the directory via FTP and set the permission to 755 it donot work. what wrong ? Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194263 Share on other sites More sharing options...
Archadian Posted February 26, 2007 Share Posted February 26, 2007 Meaning your server needs full access writes to that directory, your server being IUSR_%machinename% (whatever you named your server when installing linux or windows) Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194264 Share on other sites More sharing options...
rkumar Posted February 26, 2007 Author Share Posted February 26, 2007 I have root putty login do you know how can i do that to a said directory on my server. Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194265 Share on other sites More sharing options...
rkumar Posted February 26, 2007 Author Share Posted February 26, 2007 I have read something in more details about that. I think having dedicated server for my site this hardly matters for me to have 755 ot 777 mode on the folders. As my site is the only site hosted on that server. Can you all the expert people confirm me if this okey to make the folder permission to 777. thx. Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194273 Share on other sites More sharing options...
Archadian Posted February 26, 2007 Share Posted February 26, 2007 i believe it would be ok as long as you have a blank index.php file in that directory just incase someone types in http://yoursite/directory_with_blank_index_file/ it will just show up as a white page Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194274 Share on other sites More sharing options...
rkumar Posted February 26, 2007 Author Share Posted February 26, 2007 Thanks Archadian. More comments are welcome from other users .. Link to comment https://forums.phpfreaks.com/topic/40152-help-unable-to-upload-pictures-to-dir-permission-755/#findComment-194280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.