Tuesday, June 7, 2011

How to set permissions in Joomla

To set permissions for Directories:
sudo find path/To/Joomla -type d -print0 | xargs -0 -chmod 755
To set permissions for Files:
sudo find path/To/Joomla -type f -print0 | xargs -0 chmod 744

Next you need to Set Permissions for "tmp" Directory:
sudo chmod 777 /pathToYour/Joomla/tmp

Last if you are working on localhost best to set Joomla's owner as Apache one:
sudo chown -R www:www /pathToYour/Joomla

3 comments:

  1. you are the shit men....thank you ...wise one

    ReplyDelete
  2. Hm... not working on my server. When I execute the forst commant I get:
    XXX/htdocs # sudo find -type d | xargs chmod 755
    chmod: cannot access `./administrator/components/com_rsform/assets/forms/Simple'
    : No such file or directory
    chmod: cannot access `Contact': No such file or directory
    chmod: cannot access `Form': No such file or directory

    On the tmp folder I get:
    chmod: cannot access `/htdocs/tmp': No such file or directory

    Someone know what is the problem?

    ReplyDelete
  3. Surely there is some missing track in the Database of your system...
    After:
    1)if your are the root you don't need the "sudo"
    2)You need to add the correct path/To/Joomla

    ReplyDelete