0

I installed Joomla 3 to /var/www/html directory in Cent OS 6 server. Currently /var/www/html is owned by apache:apache.

What is the recommended permissions for Joomla installation on Linux in production environment. Who should own what with which permission?

RoraΖ
  • 12,317
  • 4
  • 51
  • 83
Kasun
  • 784
  • 2
  • 5
  • 13

1 Answers1

0

Here is what finally used as a bash file.

#/bin/bash
chown -R root:root /var/www/html
cd /var/www/html
PLACES='
administrator/components
administrator/modules
administrator/templates
cache
components
images
images/banners
images/articles
language
media
modules
templates
'
for i in $PLACES; do chown -R apache:apache $i; done


find /var/www/html -type f -exec chmod 0644 {} \;
find /var/www/html -type d -exec chmod 0755 {} \;
Kasun
  • 784
  • 2
  • 5
  • 13