Permissions on folders when creating / uploading through website

3 posts / 0 new
Last post
#1 Thu, 08/18/2011 - 03:47
-eclipse-

Permissions on folders when creating / uploading through website

Hi All

I have a little question regarding the permissions rights on folders / files. When I create a site, and then next upload files through the FTP account the standard permissions being set are the following 755

But, when I create a folder through the PHP code within the website, it gets the following permissions 700 and is then not accessible through the webpages URL??

I then have to log on to the FTP and set the permissions to 755 for the specific folder.

Does anyone have or have had a similar problem or is it the PHP code which needs to be rewritten?

Looking forward to hear from you.

  • Tim
Thu, 08/18/2011 - 08:27
andreychek

Howdy,

Does that PHP app by chance have some settings that you can tweak? Many file managers offer a way of setting a default permission for new files/folders.

-Eric

Thu, 08/18/2011 - 08:42
-eclipse-

Hi Eric

I owe you a beer. The setup had been moved from a Windows server running Apache to the Virtualmin server, and the mkdir setting in the PHP file have been meshed up due to the rights not going through on the Windows server. So, I just had to fix it so that it used permission 755 in the mkdir function.

Thanks for your help anyway, you pointed me in the right direction.

  • Tim
Topic locked