Permissions of uploaded files
Posted: Thu 12. Jan 2006, 18:00
Phpwcms does have a permission problem with many hosting providers.
This problem affects files which are uploaded with the filemanager. Files uploaded with the file manager end up in the directory phpwcms_filestorage. This directory should have permissions 777. Files uploaded to this directory should get permissions 666 or at least 644.
On many installations these files get permissions of 600, which means they are not readable by the ftp account user. Thus you are not able to read the file or do anything with it. Particularly it is not possible to make a backUp of your phpwcms installation.
This problem has been discussed before and the recommended solution was to change the hosting service. I dont think this is a very good solution.
I am sure that a large number of users of phpwcms do have this problem and dont even know about it. The problem goes unnoticed by many users for a long time because everything seems to be OK until you are trying to make a backup, move your installation to a different server or try in any way to look at your file storage.
I would like to suggest to add a line of code that does a chmod 666 on every uploaded file, if at all possible. I think this would be a much better solution, since this modification would make phpwcms more compatible to many hosting services.
Unfortunately one of these incompatible hosters in Austria is inode. This provider is considered very innovative and usually does have very good customer service. Thus he is looked at as the gold standard of hosting in Austria and everything he does is copied by many other hosters, making even more hosters incompatible with phpwcms.
So please, if possible, could we make phpwcms more compatible?
This problem affects files which are uploaded with the filemanager. Files uploaded with the file manager end up in the directory phpwcms_filestorage. This directory should have permissions 777. Files uploaded to this directory should get permissions 666 or at least 644.
On many installations these files get permissions of 600, which means they are not readable by the ftp account user. Thus you are not able to read the file or do anything with it. Particularly it is not possible to make a backUp of your phpwcms installation.
This problem has been discussed before and the recommended solution was to change the hosting service. I dont think this is a very good solution.
I am sure that a large number of users of phpwcms do have this problem and dont even know about it. The problem goes unnoticed by many users for a long time because everything seems to be OK until you are trying to make a backup, move your installation to a different server or try in any way to look at your file storage.
I would like to suggest to add a line of code that does a chmod 666 on every uploaded file, if at all possible. I think this would be a much better solution, since this modification would make phpwcms more compatible to many hosting services.
Unfortunately one of these incompatible hosters in Austria is inode. This provider is considered very innovative and usually does have very good customer service. Thus he is looked at as the gold standard of hosting in Austria and everything he does is copied by many other hosters, making even more hosters incompatible with phpwcms.
So please, if possible, could we make phpwcms more compatible?