Joomla: Setting folder ownership/permission

Post here if you face any problem with your Linux cPanel shared hosting account. Discussion also includes issues related to cPanel, email, php, MySQL, Python, SSI, CGI, Fast CGI, Perl, Ruby on Rails, Zend Optimizer, Spamassassin, GD Library, ImageMagick and many more..
Site Admin
Posts: 50
Joined: Thu May 30, 2013 10:28 pm

Joomla: Setting folder ownership/permission

Postby hrdedicated » Fri May 31, 2013 2:08 pm

Customer reports problems installing Joomla components/add-ons.

For Joomla 1.5, run the following commands from the folder where Joomla is installed (replacing USERNAME with the cp user). This only changes ownership/permissions on core Joomla directories/files, but in most cases will be sufficient.

## Run the following before the permission commands ONLY if the customer is doing an install. The configuration.php file should be empty. If it exists, make sure they didn't copy the configuration.php-dist. If it doesn't exist, then run:

touch configuration.php

# The following will restore ownership to the user for any files that httpd "stole" as well
# as assign group to httpd for all files/folders that need write permissions.

chown USERNAME:httpd configuration.php
chown -R USERNAME:httpd administrator cache components images language logs media modules plugins templates tmp

# The following will set the permissions properly for just the needed directories

find . -type f -group httpd -exec chmod 664 {} \;
find . -type d -group httpd -exec chmod 775 {} \;

Return to “cPanel Shared Hosting Services Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest