The most common rule is to chmod the directories to 755 and files 644.
A practice increasingly common among hosts is to practice the allocation of rights automatically.
These values are good in many cases but must be adapted according to the security policy of the host concerned.
CAUTION: It is imperative to refer to the documentation for your host about it.
Examples :
Files data/* 666
Note: / * means that all files in the directory should be as shown chmodes
example:
File data / * : rights = 666. UNIX command = chmod 666
data / * means all files in the data directory must be chmod 666
How to detect that you should execute these " CHMOD"?
When you get a string of error messages of this kind , you must chmod :
Warning: fopen ( "data / logh.dtb ", "w " ) - Permission denied in on line xxx http://www.mysite.com/inc/functions.php following versions
Warning : Supplied argument is not a valid File- Handle resource in http://www.mysite.com/inc/ functions.php on line xxx following versions
Warning: fopen ( " w" " / data / logh.dtb . . " ) - Read-only file system in functions.php on line xxx following versions
Warning: fputs (): Supplied argument is not a valid File- Handle resource in functions.php on line xxx following versions
Chmods these may vary according to the hosts. See FAQ thereof
For more details about CHMOD
Document generated in 0.02 second