Installing Magento Patch using SSH – Part 2

Here we’ll continue with the article “Installing Magento using SSH”. In this part, we’ll setup the necessary permissions for Magento patch install. Firstly we need to change the content permissions of Mage installation folder. Here we’ll use “Putty” to set up the permissions. Let’s Begin!

Step 1: First launch putty using the start button from the lower left corner. After the putty screen pops up use your IP address & Host Name of the store to begin with. Now click the open button.

Step 2: As we all know the DIR structure differs from server to server. Also the path is not the same as the example obviously. So, the path of Mage installation folder should be like followings depending on your server. 

Hence our hosting provides assistance during the web development period to our clients. For further technical support on Magento patch install contact our experts 24×7 using ticket/chat. Also don’t forget to claim 25% straight off in first month invoice. So go through our hosting plans and pick the suitable one before the offer ends!!!

Tanzia Farin Chy – Aspiration Hosting

Paths of different servers:

Ubuntu: /var/www/magento

CentOS: /var/www/html/magento

Now use the command line to navigate to the Mage installation folder by using Change DIR Command. Here we’re using Centos as our server. Hence the Mage Installation folder is under 3 steps of the html folder.

cd /var/www/html/stores/ce/magento

Next we’ll list the DIR of Mage folder to verify the permissions status. Also it’s oblivious to temporarily change the Mage permissions to work with Magento Patch install. After completing Magento patch installation we can again restore the permission for live store.

ls -l

Incase of message such as “Permission Denied”, use instead “Sudo” in front of the List DIR command.

sudo ls -l

In 2nd column the current permission for content of Mage folder should be visible. As we all know there are 3 different permissions can be setup for each folder or file. Further the permissions are following: read only, read/write & execute. In next 2 columns take a note but may be you need them. Here Apache is the owner of each file and folder under the Root group.

magento patch install

Permissions – Magento patch install

However, to complete Magento patch install, allow necessary files and folders permission. Hence, the permissions of capable of copying or overwriting and capable of executing script. Now follow the following codes to setup permissions in to specific files. Later we’ll list the DIR. Next copy-paste the followings using command lines for open up permissions:  

find . -type d -exec chmod 700 {} \;

find . -type f -exec chmod 600 {} \;

ls -l

For virtual server use the following commands instead and needs to execute each command as “Sudo Super Admin”:

sudo find . -type d -exec chmod 700 {} \;

sudo find . -type f -exec chmod 600 {} \;

sudo ls -l

Now the 1st column showing the most update permissions. Later we can restore the default permission if necessary.

magento patch install

Currently Viewing Part 02| GO to – Part 1 | Part 2Part 3 | Part 4Part 5 |Part 6