Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to set files permissions with .htaccess

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  Disallow multipart/byteranges requests  
Author Message
ponsfrilus

External


Since: Mar 22, 2006
Posts: 1



(Msg. 1) Posted: Wed Mar 22, 2006 2:45 pm
Post subject: How to set files permissions with .htaccess
Archived from groups: alt>www>webmaster (more info?)

Hi all,
When I upload a file on my server with a cms, by default the
permissions on this file is set to "440", which mean that the file
cannot be readable in a browser.

Do someone know a way to automatically set (chmod) the files's
permissions to "644" with a .htaccess file?

tx

 >> Stay informed about: How to set files permissions with .htaccess 
Back to top
Login to vote
Paul Ding

External


Since: Nov 29, 2005
Posts: 235



(Msg. 2) Posted: Thu Mar 23, 2006 12:55 am
Post subject: Re: How to set files permissions with .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 22 Mar 2006 14:45:53 -0800, ponsfrilus DeleteThis @gmail.com posted something
that included:

>When I upload a file on my server with a cms, by default the
>permissions on this file is set to "440", which mean that the file
>cannot be readable in a browser.

>Do someone know a way to automatically set (chmod) the files's
>permissions to "644" with a .htaccess file?

Can't be done. The .htaccess file is simply a configuration file for
Apache (or other NCSA httpd).

It's possible that you need to hunt through the source code, and have
it explicitly set the permissions to 644 when the file is saved, but
my guess it that you've got something screwed up in the configuration
file for the CMS.

What CMS are you using? Have you asked anyone using that CMS if their
system does the same thing?




--
AmishHosting.com

 >> Stay informed about: How to set files permissions with .htaccess 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A good article about .htaccess files - Hello everyone, forgive me my English. I try to find a good tutorial\article about writing htacces file, but I failed. I found a lot of websites talking about how to solve a given problem, but nothing about what those commands mean. Do you know..

Help with .htaccess and 404. - Hi, In my .htaccess I have ErrorDocument 404 /Error404php.php And it works fine, but how do I know what page the user was looking for and was not found? lately my logs show 100's of 404, (a lot more than usual), so I suspect it is my fault but without...

.htaccess help - Hi, I want to redirect any access to image files on my website to a corresponding php file. For example, any request from external site to the file http://myhost.com/myimage.jpg will be redirected to the file http://myhost/view.php?file=myimage.jpg. How...

htaccess help - Hi huys I usually design my sites using absolute paths. But then I have problems when I want to show my work to a client, and I upload everything to a secondary directory, ie: /temp1/ I know I can prevent all the linking mess using a htaccess file .. I....

can .htaccess do this? - Can it be used to block webpages from being included say in an i-frame or frameset on another site etc. ? -- Heidi http://stores.ebay.com/id=18489075 Recommended Hosting: http://www.page-zone.com/
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]