The only directories that must be writeable are the tmpr/ and cache/ folders.
Pay attention to the following:
If you moved a site from one server to an other and you jsut copy-paste files then the files that belonged to the local ftp user in your old server now belong to a user that it does not exist in the new server. You should chown all the files/dirs to the current user/group.
CD to your Elxis root folder and execute the following command:
chown -R username:group *where username/group your current username/group.
Now make everything un-writeable by everybody except the files/dirs owner:
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;Now make writeable the files/dirs you want to be writeable:
chmod 777 cache/
chmod 777 tmpr/
chmod 777 administrator/tools/defender/logs/
chmod 666 administrator/tools/defender/config.php
chmod 777 administrator/tools/floodblocker/logs/
chmod 666 administrator/tools/floodblocker/config.php
cd administrator/tools/defender/logs/
chmod 666 *
cd ../../floodblocker/logs/
chmod 666 *make writable any other files/dirs you wish
Proper Elxis installation guide:
http://www.elxis.org/guides/general-guides/proper-elxis-installation.htmlBasic security rule: First we deny everything (make everything un-writeable), then we give access (make specific files/dirs writeable). Never the opposite!
Elxis with FTP enabled can write to un-writeable files/folders and work normally. it is only required to make writeable by everyone some dirs/files that are used before elxis gets loaded (tmpr, cache and security tools).
You can add the commands above in a shell script and execute them at once in any site you wish.