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/*

News Digitized / Stay Informed

Since the beginning of 2022, we are part of Unity Group. Now, by signing up for our newsletter, you will be kept up to date with information from our entire organization.

    By submitting the form you agree to receiving a newsletter that is sent by Unity S.A. based in Wrocław. You can withdraw your consent at any time. Additional information about the processing of available details provided in the privacy policy.

    *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: