Windows explorer won't even let me name a file .htaccess on this development machine, and, just handled rename, etc. in fileZilla, and it seemed to work alright, but, yes, see cmd.exe handles use of file name.htaccess alright, etc., and, am not even running IIS on this machine at this stage. Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: Andy B. To: program-l@xxxxxxxxxxxxx Sent: Tuesday, September 03, 2013 4:10 PM Subject: [program-l] Re: Apache/linux server dynamically changing file/folder permissions? Use the cmd prompt to move the _htaccess to .htaccess (or rename it). I actually forgot how to rename files in cmd prompt.. Messing around with linux too much I guess. Xampp for Windows has no problems with .htaccess files if you can get them into the filesystem. What has a problem with htaccess files, depending on the server setup is IIS. From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger Sent: Tuesday, September 3, 2013 9:36 AM To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: Apache/linux server dynamically changing file/folder permissions? Think that's what my friend has done now, but, issue is that since I am, to a certain extent changing directory structure, by adding folders later on programmatically, it seems like the parent folder's permissions aren't being carried over to them, or something, so think my friend has, for now set whole site to allow certain levels, but, let's see. Other issue with .htaccess files, by the way, is windows7 won't let/allow you to do much with them - before you can edit them for upload to server, or before downloading them off server it seems you need to make a copy of them with a name something like _htaccess, and then download them, edit them and then re-upload, and rename them - not sure why, but, while windows7 instance of XAMPP doesn't use them as far as I know, it has an issue with a file even having that name as such...<smile> In windows explorer, tell it to create a new text file, and try rename it to .htaccess, and windows7 will just tell you that "you must type a file name". Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: David Reynolds To: program-l@xxxxxxxxxxxxx Sent: Tuesday, September 03, 2013 3:05 PM Subject: [program-l] Re: Apache/linux server dynamically changing file/folder permissions? Jacob, Off the top of my head, can't you make the change permanent using the .htaccess file? Best regards, David. E: dkreynolds@xxxxxxxxxxxx P: 01628 529218 M: 07548689154 From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James Sent: 03 September 2013 13:22 To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: Apache/linux server dynamically changing file/folder permissions? Hi Jacob, My memory tells me that Apache runs as a user called nobody. That user has very little permissions. That is for security reasons. I'm not sure what the best solution for this is in your scase. Thanks. Jim From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger Sent: Saturday, August 31, 2013 7:09 PM To: Program-l Subject: [program-l] Apache/linux server dynamically changing file/folder permissions? Just posting this here in case someone has an idea about how to 'fix' this/work around it - since haven't managed to find anything via 'net, or other PHP specific mailing lists as of yet. In that small/simple content-management-system posted about other day, issue seems to be that while am continually/consistently setting output file and folder permissions to 0776 - owner and group rwx, and public rw - for now - using PHP's chmod() function, before and after trying to copy/generate any output content for it, the server seems to be consistently/dynamically/immediately resetting the permissions to something slightly different, which won't let me then view/browse all the content. Silly/simple example is that I will handle image file upload, and copy uploaded image to a folder in a script, but, sort of immediately, that image, and the folder it's in, and that one's parent folder are invisible/unavailable/inaccessible. Before I then run a sort of recursive script to again reset all content permissions, I can't even browse the content via FTP interface - for example. When generating output/static content, I am also then consistently/continually resetting path permissions just before/after creating folders and files, if necessary, and that seems to work, some of the time, but, not for everything. Am going to try it out on another server, just to try figure/find out if it's a specific issue for this server/part of file structure, or something, but, bit irritating thus far...<smile> Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ---------------------------------------------------------------------------- This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark, its diversified business, or affiliates.