user26
user26

Reputation: 4327

How to setup directory permission in joomla installation

I have just unzipped joomla zip contents in /var/www/site1

In the joomla backend system info where it says directory permissions there i see all as unwritable.

I want to know that what permission should i give on those folders

  1. writable by user
  2. writable by apache
  3. world writable

Upvotes: 1

Views: 1005

Answers (2)

Techie
Techie

Reputation: 45124

All the folders should be 755 & the files should be 644

To recursively give directories read&execute privileges:

find /path/to/base/dir -type d -exec chmod 755 {} +

To recursively give files read privileges:

find /path/to/base/dir -type f -exec chmod 644 {} +

Read more

Upvotes: 1

Lodder
Lodder

Reputation: 19743

Making folder 777 is not recommended at all and poses security threats.

All folders should be 755 and files should be 644

Upvotes: 0

Related Questions