Fixing permissions on your Joomla! site

I am writing this post as a tip, because I tend to use this more often than not. There is only one requirement – you must have shell access to your server.

These are the two commands to run:
find /path/to/joomla/root/ -type d -exec chmod 755 {} ;
find /path/to/joomla/root/ -type f -exec chmod 644 {} ;

Replace the path “/path/to/joomla/root/” with the path to your website’s Joomla! root. It is OK to simply use the relative path.

The first line will change the permissions for all folders to 755 and the second one will change the permissions of all files to 644.

One last thing to know about this – and this is just my experience from working with servers that are running cPanel/WHM – normally, these servers have the root of your Joomla site located under a folder called “public_html”. When you run the command for directories, you need to do something like this for the path: “public_html/*” (note the asterisk).

Anyway, enjoy!


Sign up today to stay informed with industry news & trends