Chmod for Joomla Installation. Step by step Chmod and Chgrp!
Feb 06
For joomla 1.5
chmod g+w administrator/backups/ chmod g+w administrator/components/ chmod g+w administrator/language/ chmod g+w administrator/language/en-GB/ chmod g+w administrator/language/ru-RU/ chmod g+w administrator/modules/ chmod g+w administrator/templates/ chmod g+w components/ chmod g+w images/ chmod g+w images/banners/ chmod g+w images/stories/ chmod g+w language/ chmod g+w language/en-GB/ chmod g+w language/pdf_fonts/ chmod g+w language/ru-RU/ chmod g+w media/ chmod g+w modules/ chmod g+w plugins/ chmod g+w plugins/content/ chmod g+w plugins/editors/ chmod g+w plugins/editors-xtd/ chmod g+w plugins/search/ chmod g+w plugins/system/ chmod g+w plugins/user/ chmod g+w plugins/xmlrpc/ chmod g+w templates/ chmod g+w administrator/cache/ chmod g+w logs/ chmod g+w cache/ chmod g+w logs/ chmod g+w tmp/ chmod g+w administrator/components/com_sh404sef/config chmod g+w administrator/components/com_sh404sef/config/config.sef.php chmod g+w administrator/components/com_sh404sef chmod g+w administrator/components/com_sh404sef/custom.sef.php chmod g+w administrator/components/com_sh404sef/logs chmod g+w administrator/components/com_sh404sef/security chmod g+w components/com_sh404sef/cache find ./cache -type f -exec chmod 666 {} \; find ./cache/ -type d -exec chmod 777 {} \; find ./administrator/components/com_sh404sef/config -type f -exec chmod 666 {} \; find ./administrator/components/com_sh404sef/logs -type f -exec chmod 666 {} \; find ./administrator/components/com_sh404sef/security -type f -exec chmod 666 {} \; find ./components/com_sh404sef/cache -type f -exec chmod 666 {} \;
For joomla 1.0
The main thing that needs to be changed during a Joomla install is the directory permissions. Here is a shot of the install application before fixing the permissions:
administrator/backups Unwriteable
administrator/components Unwriteable
administrator/modules Unwriteable
administrator/templates Unwriteable
cache Unwriteable
components Unwriteable
images Unwriteable
images/banners Unwriteable
images/stories Unwriteable
language Unwriteable
mambots Unwriteable
mambots/content Unwriteable
mambots/editors Unwriteable
mambots/editors-xtd Unwriteable
mambots/search Unwriteable
mambots/system Unwriteable
media Unwriteable
modules Unwriteable
templates Unwriteable
List of chgrp for Apache and chmod commands list to make permissions for the web server when joomla install:
chgrp apache cache chgrp apache components chgrp apache images chgrp apache images/banners chgrp apache images/stories chgrp apache language chgrp apache mambots chgrp apache mambots/content chgrp apache mambots/editors chgrp apache mambots/editors-xtd chgrp apache mambots/search chgrp apache mambots/system chgrp apache media chgrp apache modules chgrp apache templates chmod g+w administrator/backups chmod g+w administrator/components chmod g+w administrator/modules chmod g+w administrator/templates chmod g+w cache chmod g+w components chmod g+w images chmod g+w images/banners chmod g+w images/stories chmod g+w language chmod g+w mambots chmod g+w mambots/content chmod g+w mambots/editors chmod g+w mambots/editors-xtd chmod g+w mambots/search chmod g+w mambots/system chmod g+w media chmod g+w modules chmod g+w templates chgrp apache administrator/backups chgrp apache administrator/components chgrp apache administrator/modules chgrp apache administrator/templates |
Now the installation check looks like this:
| administrator/backups | Writeable |
| administrator/components | Writeable |
| administrator/modules | Writeable |
| administrator/templates | Writeable |
| cache | Writeable |
| components | Writeable |
| images | Writeable |
| images/banners | Writeable |
| images/stories | Writeable |
| language | Writeable |
| mambots | Writeable |
| mambots/content | Writeable |
| mambots/editors | Writeable |
| mambots/editors-xtd | Writeable |
| mambots/search | Writeable |
| mambots/system | Writeable |
| media | Writeable |
| modules | Writeable |
| templates | Writeable |
Note:Chmod Commands:
As shown the general format of the command is
chmod -R/c/f/v [u / g / o / a] [+ / - / =] [rwxXstugo]
here
u : user
g: group
o : others
a : all
+ : give permission
- : take permission away
= : cause the permissions given to be the only permissions of the file
r : read permission
w: write permission
x : execute permission
X: execute only if it is a directory or already has execute permission for some user
s : set user or group ID on execution
t : save program text on swap device
u : the permissions that the user who owns the file has for it
g : the permissions that the owner?s group has for a file
o : the permissions that users not in the owner?s group have for it
(X, s, t, u, g and o are not required for common tasks)
the initial options -R/c/f/v are explained as follows :
-c : Displays names of only those files whose permissions are being changed
( –changes can also be used instead of -c )
-f : Suppresses display of error messages when a file?s permissions cannot be changed
( –silent of –quiet can also be used instead of -f )
-R: Recursively changes the permission of all files in all subdirectories of the directory whose
permissions are being changed
( –recursive can also be used )
-v : Displays results of all permission changes
( –verbose can also be used )
Note: chgrp command
The chgrp command is used to change the group ownership of one or more files or directories. Its general syntax is :
chgrp [-Rcfv] groupname foo.txt
The flags used here are also the same as those in the chmod command. The changes in ownership are applied to the groupname and the filename specified
Apr 03 at 11:21
I wonder why so many people like to comment stuff. Why is this kind of spending your free time so popular? Maybe people have a lack of communication in real world? Maybe that’s because they have a lot of problems in reality and want to run away from them? Maybe they need new impressions and experience? Or they just got suck here? I don’t have a clue. What do you all think?