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!

The Core Team
Editorial Staff Members at 'corePHP'
Editorial staff for the Core Technology Blog for 'corePHP' - news, views insights and advice for e-commerce, marketing technology , web design and development.

One thought on “Fixing permissions on your Joomla! site

  1. Cheltenham Web Designer

    Thanks for the tip! I am looking to purchase your WordPress software soon so I can start blogging myself 🙂

Comments are closed.