Failed to install chmod 640?
I just installed phpbb on my site. According to phpbb advice, I assumed to set config.php chmod to 640. In filezilla (my ftp program), I tried right clicking on the file and then choosing file permissions 640, but it gives me this error:
500 'SITE CHMOD 640 config.php': command not understood
How do I change chmod? I am using Windows OS ...
EDIT: My server is Windows Server 2003
JimG is right - we don't know your hosting type or FTP / SSH restrictions.
Fastest solution:
<?php
chmod("/home/youruser/yourwebsite/config.php", 0640);
?>
Hope you don't run into owner / group permission issues; in this case, you have to handle it with chown and chgrp function calls.
a source to share
You must have missed your edit. Mode 0640 is pretty pointless on Windows. The advice to install it this way applies to Unix-like systems. This means the owner is the only person who can change it and the group can read it and what it is. For your system, just make sure it is not writable by non-administrators by setting the appropriate ACLs (file properties, security).
a source to share