Reset Files and Directories permissions

From time to times, we must fix permissions on files and directory in order to secure an installation or to fix a broken one.

The process is quite straight forward and simple.

If you are hosted with us:
1) Log to your server using SSH
2) Execute the following software (it is installed with our servers):
fixpermissions

If you are hosted on your own dedicated server
1) Log to your server using SSH
2) Point yourself in your Apache folder (at the root of your website)
3) Run those commands

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 pear
chmod 550 mage

And the last bit: QA!
4) Visit your Magento's install and see if everything still run smoothly


And that's about it!
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2828-148-1-471' for key 'PRIMARY'

While trying to reindex your store using the command line, you stumble on the following...

How to add and edit attribute sets in Magento

Each product that you add in Magento can be configured thanks to a set of attributes. These are...

Why is Magento cron job not working?

cPanel + CageFS and CloudLinux's PHP switcher may cause problems with Magento CRON. Until this is...

How to add and edit static pages in Magento

To add and edit CMS static pages, log in to the admin panel of your Magento store and go to...

How to disable guest checkout

By default guests can shop without creating a customer account on your eCommerce. You can...