There is a easy way to check out which rights must be set:
at 1
st load up a file named
phpinfo.php onto your space.
<?php
phpinfo();
?>
now run this file and check it's output.
In the first paragraph (at the top) you will find a setting called
Server API If that have a value like
Apache 2.0 Handler (it's the bad case) then the rights must set to:
0755 for all directories and all it's subdirs (default by FTP)
0644 for all files (default by FTP)
special cases directories:
/languages/ /media/ /modules/ /pages/ /temp/ /template/ 0777 for all these directories and it's subdirs
0666 for all files inside this directories and it's subdirs. Also for
/config.phpIf the value of
Server API is like
CGI/FastCGI (optimal case) then rights can be set to:
0755 for all directories and all it's subdirs (default by FTP)
0644 for all files (default by FTP)
no special settings are needed.
One thing you
NEVER should do:
Never ever set a file-right to an odd value like 7 / 5 / 3 / 1. This means that the executable-flag is set.. and a script can be started everywhere from outside. It provides a very big security risk!!
PHP is a interpreter-script-language... in absolutely no case a PHP-script needs to be executable