Safe files and catalogues permissions

28.11.2013 Angelika Siczek

According to the above, it is worth remembering that having SSH access after the work is done, we are able to reset files rights just as to protect them before possible danger. Please never leave 777 access for diles or catalogues on the output store version. As to delete rights from the server console, please do the following activities :

 

 

1
2
3
4
5
6
7
find . -type f -exec chmod 644 {} \;
 
find . -type d -exec chmod 755 {} \;
 
chmod 550 pear
 
chmod 550 mage #for magento 1.5+

 

 If PHP does not work as a module (DSO), this will be necessary to type the following commands :

1
2
3
4
5
6
7
8
9
10
11
#for magento 1.5+
 
find . -type f -exec chmod 644 {} \;
 
find . -type d -exec chmod 755 {} \;
 
chmod o+w var var/.htaccess app/etc
 
chmod 550 mage
 
chmod -R o+w media<br><br>

 If You have the Magento version below 1.5, copy the following commands :

1
2
3
4
5
6
7
8
9
find . -type f -exec chmod 644 {} \;
 
find . -type d -exec chmod 755 {} \;
 
chmod o+w var var/.htaccess app/etc
 
chmod 550 pear
 
chmod -R o+w media

 

If at the end You would like to clean cache and session, use these commands :

1
2
3
4
5
rm -rf var/cache/*
 
   
 
rm -rf var/session/*

Have a question?

Write to us

    PDF, DOC, DOCX, JPG lub PNG (max 5MB)

    *Required

    Andrzej-kurs-programowania

    Andrzej Szylar

    Chief Executive Officer

    E-mail:

    andrzej.szylar@unitygroup.com
    Magda2

    Magdalena Paczyńska-Kamienik

    HR Manager

    E-mail:

    magdalena.paczynska@unitygroup.com
    Aleksandra

    Aleksandra Bielawska-Clegg

    HR Business Partner

    E-mail:

    Michal

    Michał Duława

    New Business Developer

    E-mail:

    Katarzyna

    Katarzyna Zajchowska

    Marketing Partner

    E-mail: