Friday, July 29, 2011

How to Check File Permissions in Joomla

Checking file permissions in Joomla is rather easy, below I will show you how check and convert file permissions in Joomla 1.5 and Joomla 1.6

Note that changing the file owner to Apache will let you edit files via the admin panel without changing file permissions to 777. You can do this by applying the "chown -R owner:user filename" command in the bash console. Replace "owner:user" with the id of apache and the "filename" to the root briefcase of your website.

Apache

Joomla 1.5

Log in to your Joomla 1.5 admin panel then hover your mouse over the "Help" button which is located at the end of the main tool bar on the top of the page. To added buttons will appear, click on the system info button.

The facts page will appear, click the directory permission link and directory permissions can be seens as writable or unwriteable.

Joomla 1.6

Log in to your Joomla 1.5 admin panel then hover your mouse over the site button which is located at the begin of the main menu bar on the top of the page. Click on the "system information" link which will open the system facts Site. Now click on the directory permission link and directory permissions can be seens as writable or unwriteable.

An easy way to convert file permissions during the facility and the facility of modules and plug-ins

Before we begin you will need a wee schedule called Putty a link to the download page for putty can be found in the at the lowest of this article. Once you have downloaded putty ( I advise the windows installer) run the schedule and add the Ip address of your server in the "Host Name (or Ip address)" Field. As the name of the field suggests you can use whether your Url or your servers Ip address. Leave the port set to 22 since this is the Ssh port used by most linux servers and click open. If this is the first time you have linked to this server Putty will prompt you about a Key, just click ok.

If all things is exact then a black box should appear also known as the "Bash" console which will ask your for a login and password. Here you must enter your Linux Username and password. If you are on a shared hosting subscription chances are you will not have administrator possession on the server. In this situation you can use the su - command. Simply type "su - " without the apostrophes in the bash console you will then be prompted for your password. Once you have entered the password you will have menagerial possession on the server.

Next you will need to navigate to the Joomla main folder. You can navigate in linux via the "cd /" command. For example: If your joomla facility is in the public_html briefcase and then the Joomla sub briefcase you can navigate there by typing "cd /public_html/joomla/ ". Once you are in your Joomla main briefcase copy paste the following commands in to the bash console, note that you can not use the ctrl+c and ctrl+v shortcut's to copy paste in the console. Simply copy the text with ctrl+v or right mouse click/copy in windows and then a single right click in the bash console will paste the text.

Commands for Joomla 1.5 note that the briefcase needs to be changed to your briefcase name

Note you have to add "chmod -R 777 " before each of the lines

administrator/backups/

administrator/components/

administrator/language/

administrator/language/en-Gb/

administrator/modules/

administrator/templates/

components/

images/

images/banners/

images/stories/

language/

language/en-Gb/

language/pdf_fonts/

media/

modules/

plugins/

plugins/content/

plugins/editors/

plugins/editors-xtd/

plugins/search/

plugins/system/

plugins/user/

plugins/xmlrpc/

templates/

/home/yourfoldername/public_html/cache/

/home/yourfoldername/public_html/administrator/cache/

/home/yourfoldername/public_html/logs/

/home/yourfoldername/public_html/tmp/

configuration.php

Commands for Joomla 1.6 note that the briefcase needs to be changed to your briefcase name

Note you have to add "chmod -R 777 " before each of the lines

administrator/components

administrator/language

administrator/language/en-Gb

administrator/language/overrides

administrator/modules

administrator/templates

components

images

images/banners

language

language/en-Gb

language/overrides

media

modules

plugins

plugins/content

plugins/editors

plugins/editors-xtd

plugins/search

plugins/system

plugins/user

configuration.php

Once you have done your installations you need to convert the file permission back to 755. Simply replace the 777 with 755 in the text above and execute the command again.

Note that leaving the file permission set to 777 will make your site vulnerable to hacker attacks.

Save the above scripts in a text file and use them each time you want to setup or un-install a module or plug-in.

How to Check File Permissions in Joomla

No comments:

Post a Comment