These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Permissions on folders when creating / uploading through website on the new forum.
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.
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
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.